rails install


Missing the Rails gem. Please gem install -v= rails, update your RAILS_GEM_VERSION setting in config/environment.rb for the Rails version you do have installed, or comment out RAILS_GEM_VERSION to use the latest version installed.

here is my gem list

$gem list
/usr/local/ruby193p0/lib/ruby/1.9.1/yaml.rb:56:in `<top (required)>':
It seems your ruby installation is missing psych (for YAML output).
To eliminate this warning, please install libyaml and reinstall your ruby.

*** LOCAL GEMS ***

bigdecimal (1.1.0)
io-console (0.3)
json (1.5.4)
minitest (2.5.1)
rake (0.9.2.2)
rdoc (3.9.4)

Answer:
Make sure you installed the rails gem in the global gem store. If you just install the gem as a non-root user, it will be installed inside your $HOME/.gems directory. If you run Redmine as another user, it will not find that gem of course.

So you could just try to install the rails gem into the global gem store as root using

sudo gem install rails -v=3.2.0

先检查版本:
gem  -v
1.8.11
下载rubygems-1.8.17.tgz
tar xzvf rubygems-1.8.17.tgz
cd rubygems-1.8.17
sodu ruby setup.rb   (检查ruby -v 版本是ruby 1.9.3p0 (2011-10-30 revision 33570) [i686-linux])
【以前的安装不对的地方是建立软连接到/usr/bin/ruby   and /usr/bin/gem 。要删除软连接,而采用安装到/usr/locla/ 下的程序】

@@@@由于usr/bin里面是root的应用程序,usr/local里面是普通用户的应用程序
补初级linux OS 知识!!!

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值