简体   繁体   中英

Installing Ruby on Rails Application with Ruby Enterprise Edition 1.8.7

I want to install one Application on my CentOS 5.5 which requires Ruby Enterprise Edition 1.8.7 and Rails 2.3.5.

I have installed REE from rubyenterpriseedition.com . To install my application I need to do some settings. In my .bash_profile I should change PATH = $PATH:$HOME/bin to

PATH=/opt/ruby-enterprise-1.8.7-2012.02/bin:$PATH:$HOME/bin

then to reload

source .bash_profile

To check whether changes have been reflected, we must run which gem. This has to output output:

/opt/ruby-enterprise-1.8.7-2012.02/bin/gem

But Unfortunately it is outputting

[root@local ~]# which gem
/usr/bin/which: no gem in (/opt/ruby-enterprise-1.8.7-2012.02/bin:/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/home/college/bin:/root/bin)

After that when i do

[root@local ~]# gem update --system
bash: gem: command not found

I am getting above error. But Look at the Actual PATH Below...

[root@local college]# echo $PATH
/usr/kerberos/sbin:/opt/ruby-enterprise-1.8.7-2012.02/bin:/usr/kerberos/bin:/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/home/college/bin:/root/bin:/opt/ruby-enterprise-1.8.7-2012.02/bin

Please help me out to install this application on my CentOS.

I think you are mixing up versions. I see both 2011.03 and 2012.02 mentioned. Please check which version you actually installed and make sure your PATH variable has this version as well.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM