Problem installing Mac OSX Ruby on Rails - file not found / error with generating documentation

I am installing Ruby on Rails on OSX. I follow these instructions:

tp> tar xzf rubygems-xyztar.gz tp> cd rubygems-xyz rubygems-xyz> sudo ruby setup.rb 

Everything is fine here, and then I issue 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 Information:

My version of Ruby:

 sh-3.2# ruby -v ruby 1.8.7 (2009-06-12 patchlevel 174) [universal-darwin10.0] 
+4
source share
1 answer

I recommend using RVM to work with Ruby and Ruby Gems:

http://rvm.io

+4
source

Source: https://habr.com/ru/post/1345001/


All Articles