Mac OSX Ruby on Rails 安装问题 - 未找到文件/生成文档时出错
我正在 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]
I am installing Ruby on Rails on OSX. I am following these instructions:
tp> tar xzf rubygems-x.y.z.tar.gz
tp> cd rubygems-x.y.z
rubygems-x.y.z> sudo ruby setup.rb
All good up to here and then I issue with this command with the following error:
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
Additional info:
My version of Ruby:
sh-3.2# ruby -v
ruby 1.8.7 (2009-06-12 patchlevel 174) [universal-darwin10.0]
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我建议您使用 RVM 来处理 Ruby 和 Ruby Gems:
http://rvm.io
I recommend you to use RVM for working with Ruby and Ruby Gems:
http://rvm.io