【问题标题】:Mac OSX Ruby on Rails Installation problem - file not found / error with generating documentationMac OSX Ruby on Rails 安装问题 - 找不到文件/生成文档时出错
【发布时间】:2011-03-23 21:58:07
【问题描述】:

我正在 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]

【问题讨论】:

  • 这不会解决这个问题,但请注意,正如它所说,不再需要使用--include-dependencies

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


【解决方案1】:

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

http://rvm.io

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-12-11
    • 2021-03-03
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多