Retrospectivaをインストールしてみた
以前より、プロジェクト管理ツールとして
trac,redmineなどを使ってきたが、Retrospectivaがいいとの記事を読んだので
とりあえずインストールしてみることにした。
サーバのバージョンを調べてみると、
#rails --version Rails 1.2.3
丸一年ほど、ruby関係はほったらかしだったので、1.2のまま。。。
なので、とりあえず、Ruby関連のバージョンアップから始めることに。
# gem update rails Updating installed gems... Bulk updating Gem source index for: http://gems.rubyforge.org Attempting remote update of rails 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.1.0 Successfully installed rake-0.8.1 Successfully installed activesupport-2.1.0 Successfully installed activerecord-2.1.0 Successfully installed actionpack-2.1.0 Successfully installed actionmailer-2.1.0 Successfully installed activeresource-2.1.0 /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require': no such file to load -- rdoc/rdoc (LoadError) from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require' from /usr/lib/ruby/site_ruby/1.8/rubygems/doc_manager.rb:71:in `load_rdoc' from /usr/lib/ruby/site_ruby/1.8/rubygems/doc_manager.rb:41:in `generate_ri' from /usr/lib/ruby/site_ruby/1.8/rubygems/commands/install_command.rb:112:in `execute' from /usr/lib/ruby/site_ruby/1.8/rubygems/commands/install_command.rb:111:in `each' from /usr/lib/ruby/site_ruby/1.8/rubygems/commands/install_command.rb:111:in `execute' from /usr/lib/ruby/site_ruby/1.8/rubygems/commands/install_command.rb:49:in `each' from /usr/lib/ruby/site_ruby/1.8/rubygems/commands/install_command.rb:49:in `execute' from /usr/lib/ruby/site_ruby/1.8/rubygems/commands/update_command.rb:61:in `execute' from /usr/lib/ruby/site_ruby/1.8/rubygems/commands/update_command.rb:57:in `each' from /usr/lib/ruby/site_ruby/1.8/rubygems/commands/update_command.rb:57:in `execute' from /usr/lib/ruby/site_ruby/1.8/rubygems/command.rb:70:in `invoke' from /usr/lib/ruby/site_ruby/1.8/rubygems/command_manager.rb:121:in `process_args' from /usr/lib/ruby/site_ruby/1.8/rubygems/command_manager.rb:92:in `run' from /usr/lib/ruby/site_ruby/1.8/rubygems/gem_runner.rb:30:in `run' from /usr/bin/gem:23
rdocとやらでエラーが、、、
調べてみると、rdocパッケージをyumで入れないといけないらしい。
参考URL:http://d.hatena.ne.jp/mtbtaizo/20070909
なので、yumでインストールを試みる。
しかし、
#yum install rdoc Setting up Install Process Setting up repositories Reading repository metadata in from local files Parsing package install arguments No Match for argument: rdoc Nothing to do
No Match for argument: rdocでどうやらみつからないぽい。。。
なのでさらに調べてみると、centos4ではレポジトリにそもそも、rdocがないらしい。。。
ので以下参考に、repoをゲットしてきてレポジトリフォルダに移動させる
参考URL: http://it.kndb.jp/entry/show/id/1168
# wget http://dev.centos.org/centos/4/CentOS-Testing.repo # mv CentOS-Testing.repo /etc/yum.repos.d/
でその後、インストール
#yum --enablerepo=c4-testing install rdoc ============================================================================= Package Arch Version Repository Size ============================================================================= Installing: ruby-rdoc i386 1.8.5-5.el4.centos.1 c4-testing 132 k Installing for dependencies: ruby-irb i386 1.8.5-5.el4.centos.1 c4-testing 67 k Updating for dependencies: ruby i386 1.8.5-5.el4.centos.1 c4-testing 272 k ruby-libs i386 1.8.5-5.el4.centos.1 c4-testing 1.5 M Transaction Summary ============================================================================= Installed: ruby-rdoc.i386 0:1.8.5-5.el4.centos.1 Dependency Installed: ruby-irb.i386 0:1.8.5-5.el4.centos.1 Dependency Updated: ruby.i386 0:1.8.5-5.el4.centos.1 ruby-libs.i386 0:1.8.5-5.el4.centos.1 Complete!
依存関係のあるものも自動的にやってくれるのが、yumのいいところだなーと改めて実感。
で、やっと、railsのバージョンアップを再開
# gem update rails Updating installed gems... Attempting remote update of rails Successfully installed rails-2.1.0
あら。。さっきエラーはでたけど、アップデートは成功してたみたい。
これで、ruby&railsの環境は準備できたのでさっそく
retrospectivaのインストール開始!!
下記URL参考にインストールしてみました。
参考URL:http://builder.japan.zdnet.com/member/u74891/blog/2008/06/06/entry_27002208/
チェックアウトして
#svn co http://retrospectiva.googlecode.com/svn/trunk retrospectiva
DBの設定
#mv config/database.yml.todo config/database.yml #vi config/database.yml
DB作って
#mysql -uroot -e "create database retrospectiva default charset=utf8" -p
さあ、インストールだーー
#rake RAILS_ENV=production db:retro:load (in /home/retrospectiva/retrospectiva) Missing the Rails 2.0.2 gem. Please `gem install -v=2.0.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.
と思ったら、またエラー。。。
Railsを2.0.2で入れ直せと??
せっかく、2.1.0にしたのに。。。Retrospectivaは、2.1.0は対応してないのかな!?
とりあえず、指示通り
#gem install -v=2.0.2 rails 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.0.2 Successfully installed activesupport-2.0.2 Successfully installed activerecord-2.0.2 Successfully installed actionpack-2.0.2 Successfully installed actionmailer-2.0.2 Successfully installed activeresource-2.0.2 Installing ri documentation for activesupport-2.0.2... Installing ri documentation for activerecord-2.0.2... Installing ri documentation for actionpack-2.0.2... Installing ri documentation for actionmailer-2.0.2... Installing ri documentation for activeresource-2.0.2... Installing RDoc documentation for activesupport-2.0.2... Installing RDoc documentation for activerecord-2.0.2... Installing RDoc documentation for actionpack-2.0.2... Installing RDoc documentation for actionmailer-2.0.2... Installing RDoc documentation for activeresource-2.0.2...
うまくいったぽい。
再度、インストール
#rake RAILS_ENV=production db:retro:load #rake RAILS_ENV=production db:migrate
(mysqlのバージョンが古かったため、vim db/schema.rbをいじって、カラムを255にしたりもした)
でインストール完了!!
あとは、
#ruby script/server -e production -p3000
で起動!!
http://localhost:3000
で、動作確認できました。
これからインストールしたやつをいろいろさわってみたいと思います。
About this entry
You’re currently reading “Retrospectivaをインストールしてみた,” an entry on Mj-site Blog
- Published:
- 07.15.08 / 7pm
- Category:
- Ruby
2 Comments
Jump to comment form | comments rss [?] | trackback uri [?]