In constant battle to install
Ruby 1.9.
2 on an RPM system (OS is based off of CentOS), I'm trying again with RVM.
So once I install it, I then try to use it:
[root@quackwall ~]# rvm use 1.9.
2
Using /usr/local/rvm/gems/ruby-1.9.2-p136
[root@quackwall ~]#
ruby
bash: ruby: command not found
[root@quackwall ~]# which
ruby
/usr/bin/which: no
ruby in (/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin)
Now that's interesting; rvm info says something completely different:
[root@quackwall bin]# rvm info
ruby-1.9.2-p136:
system:
uname: "Linux quackwall.highwow.lan
2.6.18-194.8.1.v5 #1 SMP Thu Jul 15 01:14:04 EDT 2010 i686 i686 i386 GNU/Linux"
bash: "/bin/bash => GNU bash, version
3.
2.25(1)-release (i686-redhat-linux-gnu)"
zsh: " => not installed"
rvm:
version: "rvm 1.
2.2 by Wayne E. Seguin (
[email protected]) [http://rvm.beginrescueend.com/]"
ruby:
interpreter: "
ruby"
version: "1.9.2p136"
date: "2010-12-25"
platform: "i686-linux"
patchlevel: "2010-12-25 revision 30365"
full_version: "
ruby 1.9.2p136 (2010-12-25 revision 30365) [i686-linux]"
homes:
gem: "/usr/local/rvm/gems/ruby-1.9.2-p136"
ruby: "/usr/local/rvm/rubies/ruby-1.9.2-p136"
binaries:
ruby: "/usr/local/rvm/rubies/ruby-1.9.2-p136/bin/ruby"
irb: "/usr/local/rvm/rubies/ruby-1.9.2-p136/bin/irb"
gem: "/usr/local/rvm/rubies/ruby-1.9.2-p136/bin/gem"
rake: "/usr/local/rvm/gems/ruby-1.9.2-p136/bin/rake"
environment:
PATH: "/usr/local/rvm/gems/ruby-1.9.2-p136/bin:/usr/local/rvm/gems/ruby-1.9.2-p136@global/bin:/usr/local/rvm/rubies/ruby-1.9.2-p136/bin:bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin:/usr/local/rvm/bin"
GEM_HOME: "/usr/local/rvm/gems/ruby-1.9.2-p136"
GEM_PATH: "/usr/local/rvm/gems/ruby-1.9.2-p136:/usr/local/rvm/gems/ruby-1.9.2-p136@global"
MY_RUBY_HOME: "/usr/local/rvm/rubies/ruby-1.9.2-p136"
IRBRC: "/usr/local/rvm/rubies/ruby-1.9.2-p136/.irbrc"
RUBYOPT: ""
gemset: ""
So I have RVM that says one thing and bash which says another. Any suggestions
on how to get this working?