我最近在fedora 12中安装了rails。我也是linux新手。一切工作正常在Windows 7上。但我在Linux中面临很多问题。请帮助!没有这样的文件加载 - rubygems(LoadError)
我已经安装了我所知道的所有基本知识来启动并运行基本脚本/服务器。当我尝试脚本/服务器时,我从boot.rb弹出了这个错误。一些细节,我想在这里给:
如果装上轨,红宝石和宝石的目录,
[[email protected] my_app]$ which ruby
/usr/local/bin/ruby
[[email protected] my_app]$ which rails
/usr/bin/rails
[[email protected] my_app]$ which gem
/usr/bin/gem
当我运行脚本/服务器,这是错误。
[[email protected] my_app]$ script/server
./script/../config/boot.rb:9:in `require': no such file to load -- rubygems (LoadError)
from ./script/../config/boot.rb:9
from script/server:2:in `require'
from script/server:2
和路径文件看起来像这样
[[email protected] my_app]$ cat ~/.bash_profile
# .bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
# User specific environment and startup programs
PATH=$PATH:$HOME/bin
export PATH="/usr/local/bin:/usr/local/sbin:/usr/bin/ruby:$PATH"
我想这是值得做的路径文件。让我知道我需要在这里改变。如果还有其他更改,请告诉我。
**谢谢你,你的猜测是正确的。** '[比涅斯@本地〜] $其中-a红宝石在/ usr /本地/ bin/ruby /usr/local/bin/ruby/usr/bin/ruby' **现在我该怎么办?** – Vineeth 2010-05-24 15:11:17
另外值得一提的是,如果您尝试在rails 3.x上运行脚本/服务器你会得到这个错误,而是使用'rails server' – yekta 2011-05-20 13:20:25
好的预感,这也是我的问题。 但是'哪一个红宝石'没有透露它。当我键入ruby和tab-tab时,它列出了'ruby,ruby1.8和ruby1.9.1'。 – uthomas 2013-11-28 22:16:54