Ruby-on-rails rails 3安装错误“找不到文件:lib”
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/4129882/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
rails 3 install error "File not found: lib"
提问by Sevyls
When installing Rails 3.0.1 i always get following error message, although i can use the installation.
安装 Rails 3.0.1 时,我总是收到以下错误消息,尽管我可以使用安装。
I'm not sure if there's something wrong, I'm irritated by the error message.
我不确定是否有问题,我对错误消息感到恼火。
回答by Sevyls
As in the answer by balupton:
正如 balupton 的回答:
Ruby on Rails Beta 3 Install Problem on Snow Leopard
Ruby on Rails Beta 3 在 Snow Leopard 上安装问题
gem install rdoc
Follow instructions and then rerun
按照说明,然后重新运行
gem install rails
No errors occur to me now.
我现在没有错误发生。
回答by Drew LeSueur
That didn't work for me, but this did sudo gem install rails --no-rdoc --no-ri
这对我不起作用,但这对我有用 sudo gem install rails --no-rdoc --no-ri
回答by Finnnn
I had a similar problem today. Serpenstage's answer helped and lead me to find this guide here. http://pragmaticstudio.com/blog/2010/9/23/install-rails-ruby-mac
我今天遇到了类似的问题。Serpenstage 的回答帮助并引导我在这里找到本指南。http://pragmaticstudio.com/blog/2010/9/23/install-rails-ruby-mac
It installs RVM too, which is useful for running multiple versions of ruby.
它也安装了 RVM,这对于运行多个版本的 ruby 很有用。
回答by serpentsage
Did you install Ruby before installing rails? I ran into the same problem until I went to https://help.ubuntu.com/community/RubyOnRails#Get%20Ruby. There are a number of steps you have to take before you install rails and I think this will help, if you are running it on the Ubuntu OS. Hope it works for you!
你在安装 Rails 之前安装了 Ruby 吗?我遇到了同样的问题,直到我去https://help.ubuntu.com/community/RubyOnRails#Get%20Ruby。在安装 rails 之前,您必须采取许多步骤,如果您在 Ubuntu 操作系统上运行它,我认为这会有所帮助。希望这对你有用!

