我最近在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