6

I just installed rvm and then rails 3.1rc5 with:

gem install rails --pre

But I got some errors after "Installing 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

The README file issues don't seem to be a big deal, but the 'lib' file not found sounds a bit scary.. why is it doing that? Some searching revealed others having this problem and fixing it with gem install rdoc and then re-running gem install rails --pre. But that still gives the same lib file missing errors for me.

4

5 回答 5

4

尝试使用rvm gemset install rails --pre

于 2011-08-04T16:12:57.267 回答
1

我在 Windows 上安装了 3.1.0(不是 rc8,而是最终版本),并得到了“找不到文件 'lib'”错误,同时安装了 ri 和 RDoc。当我输入“which ruby​​”时,我看到它安装在 c:/ruby192/bin 目录中。我必须为自己创建一个 .rvm 目录——它不是作为安装的一部分创建的。

--no-rdoc --no-ri 当然有效。--pre 命令安装了 rc8 而不是最终版本。

是什么赋予了?

于 2011-09-09T08:28:31.193 回答
1

Installing RDoc fixed this problem for me. I had to do this in the gemset I was using.

rvm use rubyversion@gemset
gem install rdoc

After this I could install gems without the "file 'lib' not found" error.

于 2012-09-25T09:26:22.680 回答
0

我之前遇到过类似的问题,而我的解决方案是:尝试使用 ruby​​ 1.9.2-head 而不是 ruby​​ 1.9.2-p290。

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

然后,再次安装 rails 3.1。

于 2011-11-28T08:34:26.297 回答
0

我的 Mac OS X Lion 上的 rails 3.0.9 遇到了同样的问题,“rvm gemset install rails”技巧解决了它!

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

谢谢 !

于 2011-08-09T15:37:56.517 回答