Web

Redmimeを入れてみる hoge

Redmime

http://redmine.jp/

インストール/設定

http://redmine.jp/tech_note/install/
http://www.redmine.org/wiki/redmine/RedmineInstall
↑こちらの本家サイトの方が分かりやすい。
http://gihyo.jp/dev/serial/01/redmine

  1. まず必要なpackagesを入れてみる
    aptitude install ruby
     とするとこちらのpackagesが入った。
     libruby1.8 ruby ruby1.8
    ----
    aptitude install rails=>この方法で入れるのは間違い. gem install railsにする
     とするとこちらのpackagesが入った。
     irb irb1.8 liberb-ruby libpgsql-ruby1.8 libreadline-ruby1.8 
     libredcloth-ruby1.8 rails rake rdoc rdoc1.8
    ----
    aptitude install rubygems
     とするとこちらのpackagesが入った。
     libgems-ruby1.8 libopenssl-ruby1.8 ruby1.8-dev rubygems
    ----
    MySQL対応しているとの事なので、SQLite3とかはいれない。
  2. Redmimeをダウンロード。
    現在(2008/12時点)での最新版は0.8.0-RC1なんだけど
    Redmine versionRails version required
    trunkRails 2.1.2
    0.8.xRails 2.1.2
    0.7.xRails 2.0.2
    で、Debian Etch4.0r5ではRailsは1.1.6-3なので、0.6xを使うことにする。
    gem install railsにすると2.3.Xなので、
    svn co http://redmine.rubyforge.org/svn/branches/0.8-stable redmine-0.8
    する http://rubyforge.org/frs/?group_id=1850
  3. aya@server:~$ cd /tmp
  4. aya@server:/tmp$ wget http://rubyforge.org/frs/download.php/33789/redmine-0.6.4.tar.gz
  5. aya@server://tmp$ tar xvf redmine-0.6.4.tar.gz
    ファイルが展開される・・・
    1. aya@server://tmp$ mv redmine-0.6.4 /var/www/redmine
  6. MySQL上にデータベースを作成する(例;redmime)
  7. まず設定ファイルを変更する
    例
    production:
     adapter: mysql
     database: redmine
     host: localhost
     username: bduser
     password: bdpasswd
  8. この場合、mysqld.sockが/tmp/mysqld.sockになかったら(違う場所だったら)
    production:
     adapter: mysql
     database: redmine
     host: localhost
     username: bduser
     password: bdpasswd
     socket: /var/run/mysqld/mysqld.sock
    にするとよい
  9. その後/var/www/redmineに行き
    rake db:migrate RAILS_ENV=production
    を行う。ちなみにこうすると怒られる
    rake db:migrate RAILS_ENV="production"
  10. 次にデータをロードする
    rake redmine:load_default_data RAILS_ENV="production"
  11. mkdir tmp
    sudo chown -R www-data:www-data files log tmp
    sudo chmod -R 755 files log tmp
  12. ruby script/server -e production 起動するのでdomain.com:3000になる。 admin/adminでログインしてみる
  13. ps afuxすると
    root   284365  17798  0.4  1.7  47892 36468 ?        Sl   10:30   0:02 ruby script/server -e production -p 3000 -d
    なので止めるときは
    sudo kill -9 284365
    とすると止まる。停止する方法が分からずこれで対応中

修正分

issue = 問題??

0.6.Xのja.ymlのissueはなぜか「問題」となっていたので、書き換えてアップロード、redmineを再起動すると反映された。

その他

gem install railsにしてみる

aya@server:/var/www/redmine$ sudo gem install rails
Bulk updating Gem source index for: http://gems.rubyforge.org
Install required dependency rake? [Yn]  Y
Install required dependency activesupport? [Yn]  Y
Install required dependency activerecord? [Yn]  Y
Install required dependency actionpack? [Yn]  Y
Install required dependency actionmailer? [Yn]  Y
Install required dependency activeresource? [Yn]  Y
Successfully installed rails-2.3.2
Successfully installed rake-0.8.4
Successfully installed activesupport-2.3.2
Successfully installed activerecord-2.3.2
Successfully installed actionpack-2.3.2
Successfully installed actionmailer-2.3.2
Successfully installed activeresource-2.3.2
Installing ri documentation for rake-0.8.4...
Installing ri documentation for activesupport-2.3.2...
Installing ri documentation for activerecord-2.3.2...
Installing ri documentation for actionpack-2.3.2...
Installing ri documentation for actionmailer-2.3.2...
Installing ri documentation for activeresource-2.3.2...
Installing RDoc documentation for rake-0.8.4...
Installing RDoc documentation for activesupport-2.3.2...
Installing RDoc documentation for activerecord-2.3.2...
Installing RDoc documentation for actionpack-2.3.2...
Installing RDoc documentation for actionmailer-2.3.2...
Installing RDoc documentation for activeresource-2.3.2... 

gem update --systemしろと怒られた

aya@server:/var/www/akamine$ sudo gem update --system
Updating RubyGems...
Attempting remote update of rubygems-update
Successfully installed rubygems-update-1.3.1
Updating version of RubyGems to 1.3.1
Installing RubyGems 1.3.1
mkdir -p /usr/local/lib/site_ruby/1.8
mkdir -p /usr/bin
install -c -m 0644 rubygems.rb /usr/local/lib/site_ruby/1.8/rubygems.rb
install -c -m 0644 ubygems.rb /usr/local/lib/site_ruby/1.8/ubygems.rb
mkdir -p /usr/local/lib/site_ruby/1.8/rbconfig
install -c -m 0644 rbconfig/datadir.rb /usr/local/lib/site_ruby/1.8/rbconfig /datadir.rb
mkdir -p /usr/local/lib/site_ruby/1.8/rubygems
install -c -m 0644 rubygems/remote_fetcher.rb /usr/local/lib/site_ruby /1.8/rubygems/remote_fetcher.rb
install -c -m 0644 rubygems/gem_path_searcher.rb /usr/local/lib/site_ruby/1.8/rubygems/gem_path_searcher.rb
install -c -m 0644 rubygems/doc_manager.rb /usr/local/lib/site_ruby/1.8/rubygems/doc_manager.rb
install -c -m 0644 rubygems/source_index.rb /usr/local/lib/site_ruby/1.8/rubygems/source_index.rb
install -c -m 0644 rubygems/require_paths_builder.rb /usr/local/lib/site_ruby /1.8/rubygems/require_paths_builder.rb
install -c -m 0644 rubygems/timer.rb /usr/local/lib/site_ruby/1.8/rubygems/timer.rb
install -c -m 0644 rubygems/specification.rb /usr/local/lib/site_ruby/1.8/rubygems/specification.rb
install -c -m 0644 rubygems/old_format.rb /usr/local/lib/site_ruby/1.8/rubygems/old_format.rb
install -c -m 0644 rubygems/test_utilities.rb /usr/local/lib/site_ruby /1.8/rubygems/test_utilities.rb
install -c -m 0644 rubygems/indexer.rb /usr/local/lib/site_ruby/1.8/rubygems/indexer.rb
install -c -m 0644 rubygems/version.rb /usr/local/lib/site_ruby/1.8/rubygems/version.rb
install -c -m 0644 rubygems/format.rb /usr/local/lib/site_ruby/1.8/rubygems/format.rb
install -c -m 0644 rubygems/dependency_list.rb /usr/local/lib/site_ruby/1.8/rubygems/dependency_list.rb
install -c -m 0644 rubygems/requirement.rb /usr/local/lib/site_ruby/1.8/rubygems/requirement.rb
install -c -m 0644 rubygems/install_update_options.rb /usr/local/lib/site_ruby/1.8/rubygems/install_update_options.rb
install -c -m 0644 rubygems/custom_require.rb /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb
install -c -m 0644 rubygems/exceptions.rb /usr/local/lib/site_ruby/1.8/rubygems/exceptions.rb
install -c -m 0644 rubygems/spec_fetcher.rb /usr/local/lib/site_ruby/1.8/rubygems/spec_fetcher.rb
install -c -m 0644 rubygems/gem_openssl.rb /usr/local/lib/site_ruby/1.8/rubygems/gem_openssl.rb
install -c -m 0644 rubygems/config_file.rb /usr/local/lib/site_ruby/1.8/rubygems/config_file.rb
install -c -m 0644 rubygems/validator.rb /usr/local/lib/site_ruby/1.8/rubygems/validator.rb
install -c -m 0644 rubygems/version_option.rb /usr/local/lib/site_ruby/1.8/rubygems/version_option.rb
install -c -m 0644 rubygems/platform.rb /usr/local/lib/site_ruby/1.8/rubygems/platform.rb
install -c -m 0644 rubygems/source_info_cache_entry.rb /usr/local/lib/site_ruby/1.8/rubygems/source_info_cache_entry.rb
install -c -m 0644 rubygems/user_interaction.rb /usr/local/lib/site_ruby/1.8/rubygems/user_interaction.rb
install -c -m 0644 rubygems/source_info_cache.rb /usr/local/lib/site_ruby/1.8/rubygems/source_info_cache.rb
install -c -m 0644 rubygems/installer.rb /usr/local/lib/site_ruby/1.8/rubygems/installer.rb
install -c -m 0644 rubygems/uninstaller.rb /usr/local/lib/site_ruby  /1.8/rubygems/uninstaller.rb
install -c -m 0644 rubygems/rubygems_version.rb /usr/local/lib/site_ruby/1.8/rubygems/rubygems_version.rb
install -c -m 0644 rubygems/defaults.rb /usr/local/lib/site_ruby/1.8/rubygems/defaults.rb
install -c -m 0644 rubygems/dependency_installer.rb /usr/local/lib/site_ruby/1.8/rubygems/dependency_installer.rb
install -c -m 0644 rubygems/package.rb /usr/local/lib/site_ruby/1.8/rubygems/package.rb
install -c -m 0644 rubygems/ext.rb /usr/local/lib/site_ruby/1.8/rubygems/ext.rb
install -c -m 0644 rubygems/builder.rb /usr/local/lib/site_ruby/1.8/rubygems/builder.rb
install -c -m 0644 rubygems/security.rb /usr/local/lib/site_ruby/1.8/rubygems /security.rb
install -c -m 0644 rubygems/local_remote_options.rb /usr/local/lib/site_ruby/1.8/rubygems/local_remote_options.rb
install -c -m 0644 rubygems/gem_runner.rb /usr/local/lib/site_ruby/1.8/rubygems/gem_runner.rb
install -c -m 0644 rubygems/dependency.rb /usr/local/lib/site_ruby/1.8/rubygems/dependency.rb
install -c -m 0644 rubygems/server.rb /usr/local/lib/site_ruby/1.8/rubygems/server.rb
install -c -m 0644 rubygems/command_manager.rb /usr/local/lib/site_ruby/1.8/rubygems/command_manager.rb
install -c -m 0644 rubygems/command.rb /usr/local/lib/site_ruby/1.8/rubygems/command.rb
mkdir -p /usr/local/lib/site_ruby/1.8/rubygems/digest
install -c -m 0644 rubygems/digest/sha2.rb /usr/local/lib/site_ruby/1.8/rubygems/digest/sha2.rb
install -c -m 0644 rubygems/digest/digest_adapter.rb /usr/local/lib/site_ruby/1.8/rubygems/digest/digest_adapter.rb
install -c -m 0644 rubygems/digest/sha1.rb /usr/local/lib/site_ruby/1.8/rubygems/digest/sha1.rb
install -c -m 0644 rubygems/digest/md5.rb /usr/local/lib/site_ruby/1.8/rubygems/digest/md5.rb
mkdir -p /usr/local/lib/site_ruby/1.8/rubygems/package
install -c -m 0644 rubygems/package/tar_input.rb /usr/local/lib/site_ruby/1.8/rubygems/package/tar_input.rb
install -c -m 0644 rubygems/package/tar_writer.rb /usr/local/lib/site_ruby/1.8/rubygems/package/tar_writer.rb
install -c -m 0644 rubygems/package/f_sync_dir.rb /usr/local/lib/site_ruby/1.8/rubygems/package/f_sync_dir.rb
install -c -m 0644 rubygems/package/tar_reader.rb /usr/local/lib/site_ruby/1.8/rubygems/package/tar_reader.rb
install -c -m 0644 rubygems/package/tar_output.rb /usr/local/lib/site_ruby/1.8/rubygems/package/tar_output.rb
install -c -m 0644 rubygems/package/tar_header.rb /usr/local/lib/site_ruby/1.8/rubygems/package/tar_header.rb
mkdir -p /usr/local/lib/site_ruby/1.8/rubygems/package/tar_reader
install -c -m 0644 rubygems/package/tar_reader/entry.rb /usr/local/lib/site_ruby/1.8/rubygems/package/tar_reader/entry.rb
mkdir -p /usr/local/lib/site_ruby/1.8/rubygems/commands
install -c -m 0644 rubygems/commands/stale_command.rb /usr/local/lib/site_ruby/1.8/rubygems/commands/stale_command.rb
install -c -m 0644 rubygems/commands/uninstall_command.rb /usr/local/lib/site_ruby/1.8/rubygems/commands/uninstall_command.rb
install -c -m 0644 rubygems/commands/query_command.rb /usr/local/lib/site_ruby/1.8/rubygems/commands/query_command.rb
install -c -m 0644 rubygems/commands/install_command.rb /usr/local/lib/site_ruby/1.8/rubygems/commands/install_command.rb
install -c -m 0644 rubygems/commands/fetch_command.rb /usr/local/lib/site_ruby/1.8/rubygems/commands/fetch_command.rb
install -c -m 0644 rubygems/commands/cleanup_command.rb /usr/local/lib/site_ruby/1.8/rubygems/commands/cleanup_command.rb
install -c -m 0644 rubygems/commands/sources_command.rb /usr/local/lib/site_ruby/1.8/rubygems/commands/sources_command.rb
install -c -m 0644 rubygems/commands/generate_index_command.rb /usr/local/lib/site_ruby/1.8/rubygems/commands/generate_index_command.rb
install -c -m 0644 rubygems/commands/build_command.rb /usr/local/lib/site_ruby/1.8/rubygems/commands/build_command.rb
install -c -m 0644 rubygems/commands/lock_command.rb /usr/local/lib/site_ruby/1.8/rubygems/commands/lock_command.rb
install -c -m 0644 rubygems/commands/contents_command.rb /usr/local/lib/site_ruby/1.8/rubygems/commands/contents_command.rb
install -c -m 0644 rubygems/commands/search_command.rb /usr/local/lib/site_ruby/1.8/rubygems/commands/search_command.rb
install -c -m 0644 rubygems/commands/server_command.rb /usr/local/lib/site_ruby/1.8/rubygems/commands/server_command.rb
install -c -m 0644 rubygems/commands/check_command.rb /usr/local/lib/site_ruby/1.8/rubygems/commands/check_command.rb
install -c -m 0644 rubygems/commands/environment_command.rb /usr/local/lib/site_ruby/1.8/rubygems/commands/environment_command.rb
install -c -m 0644 rubygems/commands/pristine_command.rb /usr/local/lib/site_ruby/1.8/rubygems/commands/pristine_command.rb
install -c -m 0644 rubygems/commands/outdated_command.rb /usr/local/lib/site_ruby/1.8/rubygems/commands/outdated_command.rb
install -c -m 0644 rubygems/commands/update_command.rb /usr/local/lib/site_ruby/1.8/rubygems/commands/update_command.rb
install -c -m 0644 rubygems/commands/list_command.rb /usr/local/lib/site_ruby/1.8/rubygems/commands/list_command.rb
install -c -m 0644 rubygems/commands/dependency_command.rb /usr/local/lib/site_ruby/1.8/rubygems/commands/dependency_command.rb
install -c -m 0644 rubygems/commands/specification_command.rb /usr/local/lib/site_ruby/1.8/rubygems/commands/specification_command.rb
install -c -m 0644 rubygems/commands/mirror_command.rb /usr/local/lib/site_ruby/1.8/rubygems/commands/mirror_command.rb
install -c -m 0644 rubygems/commands/cert_command.rb /usr/local/lib/site_ruby/1.8/rubygems/commands/cert_command.rb
install -c -m 0644 rubygems/commands/unpack_command.rb /usr/local/lib/site_ruby/1.8/rubygems/commands/unpack_command.rb
install -c -m 0644 rubygems/commands/help_command.rb /usr/local/lib/site_ruby/1.8/rubygems/commands/help_command.rb 
install -c -m 0644 rubygems/commands/rdoc_command.rb /usr/local/lib/site_ruby/1.8/rubygems/commands/rdoc_command.rb
install -c -m 0644 rubygems/commands/which_command.rb /usr/local/lib/site_ruby/1.8/rubygems/commands/which_command.rb
mkdir -p /usr/local/lib/site_ruby/1.8/rubygems/ext
install -c -m 0644 rubygems/ext/rake_builder.rb /usr/local/lib/site_ruby/1.8/rubygems/ext/rake_builder.rb
install -c -m 0644 rubygems/ext/configure_builder.rb /usr/local/lib/site_ruby  /1.8/rubygems/ext/configure_builder.rb
install -c -m 0644 rubygems/ext/builder.rb /usr/local/lib/site_ruby/1.8/rubygems/ext/builder.rb
install -c -m 0644 rubygems/ext/ext_conf_builder.rb /usr/local/lib/site_ruby/1.8/rubygems/ext/ext_conf_builder.rb
cp gem /tmp/gem
install -c -m 0755 /tmp/gem /usr/bin/gem1.8
rm /tmp/gem
rm -f /usr/lib/ruby/gems/1.8/source_cache
Removing old RubyGems RDoc and ri
Installing rubygems-1.3.1 ri into /usr/lib/ruby/gems/1.8/doc/rubygems-1.3.1/ri
Installing rubygems-1.3.1 rdoc into /usr/lib/ruby/gems/1.8/doc/rubygems- 1.3.1/rdoc
 = Announce: RubyGems Release 1.3.0 

NOTE:  RubyGems 1.1 and 1.2 have problems upgrading when there is 
no rubygems-update installed.  You will need to follow the second set of 
update instructions if you see "Nothing to update".

Release 1.3.0 fixes some bugs. 

Bugs fixed:

* Disregard ownership of ~ under Windows while creating ~/.gem.  
Fixes issues related to no uid support under Windows.
* Fix requires for Gem::inflate, Gem::deflate, etc.
* Make Gem.dir respect :gemhome value from config.  (Note: this feature may be
 removed since it is hard to implement on 1.9.)
* Kernel methods are now private.  Patch #20801 by Stefan Rusterholz. 
* Gem::location_of_caller now behaves on Windows.  Patch by Daniel Berger.
* Silence PATH warning.

Deprecation Notices:

* Gem::manage_gems will be removed on or after March 2009. 
For a full list of changes to RubyGems and the contributor for each change, see
the ChangeLog file.

Special thanks to Chad Wooley for backwards compatibility testing and Luis
Lavena for continuing windows support. 

== How can I get RubyGems?

NOTE:  If you have installed RubyGems using a package system you may want 
to install a new RubyGems through the same packaging system.

If you have a recent version of RubyGems (0.8.5 or later), then all 

you need to do is:

 $ gem update --system   (you might need to be admin/root)
NOTE:  RubyGems 1.1 and 1.2 have problems upgrading when there is no
rubygems-update installed.  You will need to follow the second set of update
instructions if you see "Nothing to update".

NOTE: You may have to run the command twice if you have any previosly

installed rubygems-update gems.

If you have an older version of RubyGems installed, then you can still

do it in two steps:

 $ gem install rubygems-update  (again, might need to be admin/root)
 $ update_rubygems              (... here too)

If you don't have any gems install, there is still the pre-gem
approach to getting software ... doing it manually:

1. DOWNLOAD FROM: http://rubyforge.org/frs/?group_id=126
2. UNPACK INTO A DIRECTORY AND CD THERE
3. INSTALL WITH:  ruby setup.rb  (you may need admin/root privilege) 

== To File Bugs

The RubyGems bug tracker can be found on RubyForge at:
http://rubyforge.org/tracker/?func=add&group_id=126&atid=575 

When filing a bug, `gem env` output will be helpful in diagnosing the issue. 

If you find a bug where RubyGems crashes, please provide debug output. 
You can do that with `gem --debug the_command`.

== Thanks
Keep those gems coming!

-- Jim & Chad & Eric (for the RubyGems team)

 ------------------------------------------------------------------------------
 
RubyGems installed the following executables:
       /usr/bin/gem1.8

If `gem` was installed by a previous RubyGems installation, you may need

to remove it by hand.

RubyGems system software updated

gem install -v=2.1.2 rails

aya@server:/var/www/redmine$ sudo ruby script/server -e production -p 3000 -d
Missing the Rails 2.1.2 gem. Please `gem install -v=2.1.2 rails`, update your  RAILS_GEM_VERSION setting in config/environment.rb for the Rails version you do have installed, or comment out RAILS_GEM_VERSION to use the latest version installed.
aya@server:/var/www/akamine$ sudo gem install -v=2.1.2 rails
Successfully installed rake-0.8.4
Successfully installed activesupport-2.1.2
Successfully installed activerecord-2.1.2
Successfully installed actionpack-2.1.2
Successfully installed actionmailer-2.1.2
Successfully installed activeresource-2.1.2
Successfully installed rails-2.1.2
7 gems installed
Installing ri documentation for rake-0.8.4...
Installing ri documentation for activesupport-2.1.2...
Installing ri documentation for activerecord-2.1.2...
Installing ri documentation for actionpack-2.1.2...
Installing ri documentation for actionmailer-2.1.2...
Installing ri documentation for activeresource-2.1.2...
Installing RDoc documentation for rake-0.8.4...
Installing RDoc documentation for activesupport-2.1.2...
Installing RDoc documentation for activerecord-2.1.2...
Installing RDoc documentation for actionpack-2.1.2...
Installing RDoc documentation for actionmailer-2.1.2...
Installing RDoc documentation for activeresource-2.1.2... 

エラー

リモートのsubversionのレポジトリを呼べない

なぜ・・・

No repository found

SVNを選んで表示したときに/log/production.logで怒られている。設定でhttp://server/svn/repoにしていたので、

svn+ssh://サーバー名/snv/repo

とする

Host key verification failed.


Last-modified: 2012-03-12 (月) 17:05:55 (166d)