Ruby on Rails 安装 Rails报错:
File not found: lib ERROR: While generating documentation for rails-3.0.7 ... MESSAGE: exit ... RDOC args: --ri --op /usr/local/rvm/gems/ruby-1.8.7-p334/doc/rails-3.0.7/ri lib --title rails-3.0.7 Documentation –quiet
翻墙搜索得到这篇文章,转载如下:
The issue is that the new Rails version you are installing uses a more recent version of Rdoc/ri and thus when the installation process gets to Rdoc/ri installation, it fails. I don’t know why the ROR developers didn’t think of checking for this and updating Rdoc/ri for you. Anyway, the correct way to solve this issue is to first uninstall the Rails version you just installed with no Rdoc/ri data:
sudo gem uninstall rails
Install the latest version of the rdoc-data gem. This will install ri data for core and stdlib:
sudo gem install rdoc-data
Then run:
sudo rdoc-data –install
In case you want rdoc-data for all your gems run (not necessary.. takes a while if you have as many gems as i do):
gem rdoc –all –overwrite
Now you can install your Rails version and it will successfully install all the rdoc-data too.
sudo gem install rails
Output:
Successfully installed rails-3.0.7 1 gem installed Installing ri documentation for rails-3.0.7... Installing RDoc documentation for rails-3.0.7...
After the day