我最近在fedora 12中安装了rails。我也是Linux的新手。在Windows 7上一切正常。但是在Linux中我遇到很多问题。请帮助!
我已经安装了所有必需的知识,以启动并运行基本脚本/服务器。我在尝试脚本/服务器时从boot.rb弹出此错误。我想在这里提供一些细节:
Rails,ruby和gem的安装目录,
[vineeth@localhost my_app]$ which ruby
/usr/local/bin/ruby
[vineeth@localhost my_app]$ which rails
/usr/bin/rails
[vineeth@localhost my_app]$ which gem
/usr/bin/gem
当我运行脚本/服务器时,这就是错误。
[vineeth@localhost 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
PATH文件看起来像这样
[vineeth@localhost 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"
我想这与PATH文件有关。让我知道我需要在这里进行更改。如果我需要进行其他更改,请告诉我。
波斯汪
慕村225694
相关分类