'Lib' file not found when installing rails 3.1 on Mac OS X Lion

I just installed rvm and then rails 3.1rc5 with:

gem install rails --pre 

But I got some errors after "Installing the ri documentation" and the RDoc documentation:

 Successfully installed <bunch of things> 30 gems installed Installing ri documentation for multi_json-1.0.3... Installing ri documentation for activesupport-3.1.0.rc5... Installing ri documentation for builder-3.0.0... unable to convert "\xF1" from ASCII-8BIT to UTF-8 for README, skipping unable to convert "\xF1" from ASCII-8BIT to UTF-8 for README.rdoc, skipping Installing ri documentation for i18n-0.6.0... Installing <tons more documentation> Installing ri documentation for rails-3.1.0.rc5... file 'lib' not found Installing RDoc documentation for multi_json-1.0.3... Installing RDoc documentation for activesupport-3.1.0.rc5... Installing RDoc documentation for builder-3.0.0... unable to convert "\xF1" from ASCII-8BIT to UTF-8 for README, skipping unable to convert "\xF1" from ASCII-8BIT to UTF-8 for README.rdoc, skipping Installing RDoc documentation for i18n-0.6.0... Installing <tons more documentation> Installing RDoc documentation for rails-3.1.0.rc5... file 'lib' not found 

Problems with the README file do not seem to matter much, but the "lib" file was not found to be a little intimidating. Why is he doing this? Some searches revealed that others had this problem and fixed it with gem install rdoc , and then restarted gem install rails --pre . But it still gives me the same lib files.

+6
source share
5 answers

Try using rvm gemset install rails --pre

+4
source

I installed 3.1.0 on Windows (not rc8, but the final version), and got the error "file" lib "not found" by installing both ri and RDoc. When I type "ruby", I see that it is installed in the c: / ruby192 / bin directory. I had to create a .rvm directory for myself - it was not created as part of the installation.

--no-rdoc --no-ri worked of course. The -pre commands install rc8 instead of the final version.

What gives?

+1
source

Installing RDoc fixed this problem for me. I had to do this in the gemset that I used.

 rvm use rubyversion@gemset gem install rdoc 

After that, I can install the stones without the error "file" lib "not found".

+1
source

I had the same problem with rails 3.0.9 on my Mac OS X Lion, and the β€œrvm gemset install rails” trick solved this!

 $ rvm gemset install rails installing rails ... rails installed. $ rails -v Rails 3.0.9 

Thanks!

0
source

I used to have a similar problem, while my solution was as follows: try using ruby ​​1.9.2-head instead of ruby ​​1.9.2-p290.

 rvm install ruby-1.9.2-head rvm use ruby-1.9.2-head --default 

And then reinstall the rails 3.1.

0
source

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


All Articles