どうやら rubygems-1.8.5 を入れたのがよくなかったようだ。1.6.2 でやるといいらしい。でも、もう一度 ruby-1.8.7 から入れなおし。
cd ruby-1.8.7-p334/ ./configure --prefix=/usr/local/ruby-1.8.7/ make make install export PATH=/usr/local/ruby-1.8.7/bin:$PATH cd rubygems-1.6.2 ruby setup.rb気を取り直して
gem install rails -v=2.3.11 gem install pg -- --with-pg-dir=/usr/local/pgsql gem install dbi gem install dbd-pg gem install -v=0.4.2 i18nopenssl も必要になることが判明するので
apt-get install libssl-dev cd ruby-1.8.7-p334/ext/openssl ruby extconf.rb make make install
tar zxf redmine-1.2.0.tar.gz mv redmine-1.2.0 Redmine
vi Redmine/config/database.yml
production: adapter: postgresql database: redmine host: localhost username: shingo password: encoding: utf8
shingo@catchy:~$ createdb redmine shingo@catchy:~$ cd Redmine shingo@catchy:~/Redmine$ export PATH=/usr/local/ruby-1.8.7/bin:$PATH shingo@catchy:~/Redmine$ rake generate_session_store rake/rdoctask is deprecated. Use rdoc/task instead (in RDoc 2.4.2+) WARNING: 'task :t, arg, :needs => [deps]' is deprecated. Please use 'task :t, [args] => [deps]' instead. at /home/shingo/Redmine/lib/tasks/email.rake:170 shingo@catchy:~/Redmine$ RAILS_ENV=production rake db:migrate rake/rdoctask is deprecated. Use rdoc/task instead (in RDoc 2.4.2+) WARNING: 'task :t, arg, :needs => [deps]' is deprecated. Please use 'task :t, [args] => [deps]' instead. at /home/shingo/Redmine/lib/tasks/email.rake:170 == Setup: migrating ========================================================== -- create_table("attachments", {:force=>true}) NOTICE: CREATE TABLE will create implicit sequence "attachments_id_seq" for serial column "attachments.id" NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index "attachments_pkey" for table "attachments" -> 0.0934s -- create_table("auth_sources", {:force=>true}) NOTICE: CREATE TABLE will create implicit sequence "auth_sources_id_seq" for serial column "auth_sources.id" NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index "auth_sources_pkey" for table "auth_sources" -> 0.0301s -- skip --
このあと、デフォルトデータの設定をやって無事 webrick をあげることができた。
RAILS_ENV=production rake redmine:load_default_data ruby script/server -e production
でもなんだか webrick の起動が非常にモッサリしている。さらにゲスト OS の Ubuntu で動かして、ホスト OS のWindows のブラウザでほうで見に行っていることもあり、私の環境では重くて使い物にはならない...
0 件のコメント:
コメントを投稿