Lazy Diary @ Hatena Blog

PowerShell / Java / miscellaneous things about software development, Tips & Gochas. CC BY-SA 4.0/Apache License 2.0

Vine 3.2 に Ruby on Rails をインストール

http://webrec.jp/blog/log/eid14.htm を参考に行った。

$ wget http://rubyforge.org/frs/download.php/5207/rubygems-0.8.11.tgz
$ tar xvzf rubygems-0.8.11.tgz
$ cd rubygems-0.8.11
$ sudo ruby setup.rb

ここまではよし。

$ sudo gem install rubygems
Attempting local installation of 'rubygems'
Local gem file not found: rubygems*.gem
Attempting remote installation of 'rubygems'
ERROR:  While executing gem ... (Gem::GemNotFoundException)
    Could not find rubygems (> 0) in the repository

これは次のようにするのが正しい。

$ sudo gem update --system
Upgrading RubyGems...
Attempting remote upgrade of rubygems-update
Attempting remote installation of 'rubygems-update'
Successfully installed rubygems-update-0.8.11
Updating version of RubyGems to 0.8.11
Installing RubyGems 0.8.11
 ...

rails のインストール。

$ sudo gem install rails --include-dependencies
Attempting local installation of 'rails'
Local gem file not found: rails*.gem
Attempting remote installation of 'rails'
Successfully installed rails-1.1.2
 ...
/usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:21:in `require__': No such file to load -- rdoc/rdoc (LoadError)
...

エラー。

$ apt-cache search rdoc
perl-libxml-enno - A collection of Perl modules for XML parsing and validation.
rdoc - Generate documentation from ruby source files

だそうなので

$ sudo apt-get install rdoc
パッケージリストを読みこんでいます... 完了
 ...
   1:rdoc                   ########################################### [100%]
完了

で、

$ sudo gem install rails --include-dependencies
Attempting local installation of 'rails'
Local gem file not found: rails*.gem
Attempting remote installation of 'rails'
Successfully installed rails-1.1.2

Rails のインストール自体は完了。