Mac OSX Ruby on Rails安装问题 - 找不到文件/生成文档时出错

时间:2011-03-23 21:58:08

标签: ruby-on-rails ruby-on-rails-3 macos install

我在OSX上安装Ruby on Rails。我遵循这些指示:

tp> tar xzf rubygems-x.y.z.tar.gz
tp> cd rubygems-x.y.z
rubygems-x.y.z> sudo ruby setup.rb

所有这些都很好,然后我用这个命令发出以下错误:

tp> sudo gem install rails --include-dependencies
INFO:  `gem install -y` is now default and will be removed
INFO:  use --ignore-dependencies to install only the gems you list
Successfully installed rails-3.0.5
1 gem installed
Installing ri documentation for rails-3.0.5...
File not found: lib
ERROR:  While generating documentation for rails-3.0.5
... MESSAGE:   exit
... RDOC args: --ri --op /Library/Ruby/Gems/1.8/doc/rails-3.0.5/ri lib --title rails-3.0.5 Documentation --quiet

其他信息:

我的Ruby版本:

sh-3.2# ruby -v
ruby 1.8.7 (2009-06-12 patchlevel 174) [universal-darwin10.0]

1 个答案:

答案 0 :(得分:4)

我建议您使用RVM来处理Ruby和Ruby Gems:

http://rvm.io