redmineのインストールで悶絶

ruby-1.8のrails-2.1.2にしとけということらしい。
cygwin上のruby-1.8ではサクッとできたが、
gentoo上のruby-1.9では頓挫してしまった。


がんばって動くところまでこぎ着けた。
まず、開発版のredmineを使う。

$ svn co http://redmine.rubyforge.org/svn/trunk redmine
$ cd redmine
$ vi config/database.yaml
production:
  adapter: sqlite3
  dbfile: db/redmine.db
  timeout: 5000
$ vi config/environment.rb
-RAILS_GEM_VERSION = '2.2.2' unless defined? RAILS_GEM_VERSION
+RAILS_GEM_VERSION = '2.3.3' unless defined? RAILS_GEM_VERSION

+  config.action_controller.session = { :key => "_myapp_session", :secret => "f5b660fb1384450b0
$ vi lib/redmine/export/pdf.rb
# 84行目(txt=txt.gsub...)をコメントアウト

$ rake db:migrate RAILS_ENV=production
$ rake redmine:load_default_data RAILS_ENV=production
$ cd app/controllers/
$ mv application.rb application_controller.rb
$ vi application_controller.rb
# コメントアウト
=begin
  rescue_from ActionController::Session::CookieStore::TamperedWithCookie do |exception|
    render :text => 'Your session was invalid and has been reset. Please, reload this page.', :status => 500
  end
=end
$ cd -
$ script/server -e production
=> Booting WEBrick
=> Rails 2.3.3 application starting on http://0.0.0.0:3000
=> Call with -d to detach
=> Ctrl-C to shutdown server
[2009-08-27 14:00:14] INFO  WEBrick 1.3.1
[2009-08-27 14:00:14] INFO  ruby 1.9.1 (2009-05-12) [i686-linux]
[2009-08-27 14:00:14] WARN  TCPServer Error: Address already in use - bind(2)
[2009-08-27 14:00:14] INFO  WEBrick::HTTPServer#start: pid=11110 port=3000

とりあえずWEBrickが起きてくるまで。

動作させたらエラーが出るw

undefined method `to_a' for "login":String

無理なのかw