Repository: rvm/rvm

Issue #733: rvm 1.10.2 fails to install rubygems-1.8.15 for ree-1.8.7-2011.12 on CentOS release 5.5 (Final)
Created: 2012-01-30T14:39:42Z
rvm 1.10.2 fails to install rubygems-1.8.15 for ree-1.8.7-2011.12 on CentOS release 5.5 (Final)
$ rvm install ree-1.8.7
Installing Ruby Enterprise Edition from source to: /home/iop/.rvm/rubies/ree-1.8.7-2011.12
ree-1.8.7-2011.12 - #fetching (ruby-enterprise-1.8.7-2011.12)
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 7773k  100 7773k    0     0   350k      0  0:00:22  0:00:22 --:--:--  431k
ree-1.8.7-2011.12 - #extracting ruby-enterprise-1.8.7-2011.12 to /home/iop/.rvm/src/ree-1.8.7-2011.12
Applying patch 'tcmalloc' (located at /home/iop/.rvm/patches/ree/1.8.7/tcmalloc.patch)
Applying patch 'stdout-rouge-fix' (located at /home/iop/.rvm/patches/ree/1.8.7/stdout-rouge-fix.patch)
Applying patch 'no_sslv2' (located at /home/iop/.rvm/patches/ree/1.8.7/no_sslv2.diff)
Applying patch 'lib64' (located at /home/iop/.rvm/patches/ree/lib64.patch)
ree-1.8.7-2011.12 - #installing 
Removing old Rubygems files...
-e:1: Use RbConfig instead of obsolete and deprecated Config.
Installing rubygems-1.8.15 for system ...
Error running 'GEM_PATH=":@global" GEM_HOME="" "/home/iop/.rvm/rubies//bin/ruby" "/home/iop/.rvm/src/rubygems-1.8.15/setup.rb"', please read /home/iop/.rvm/log/system/rubygems.install.log
Installation of rubygems did not complete successfully.
ln: target `/home/iop/.rvm/rubies//lib/ruby/gems/' is not a directory: No such file or directory
ree-1.8.7-2011.12 - adjusting #shebangs for (gem irb erb ri rdoc testrb rake).
ree-1.8.7-2011.12 - #importing default gemsets (/home/iop/.rvm/gemsets/)

Value of rvm_ruby_binary is incorrect (/home/iop/.rvm/rubies//bin/ruby)
When fixed (/home/iop/.rvm/rubies/ree-1.8.7-2011.12/bin/ruby) and rerun manually I get it to install sucessfuly:
GEM_PATH=":@global" GEM_HOME="" "/home/iop/.rvm/rubies/ree-1.8.7-2011.12/bin/ruby" "/home/iop/.rvm/src/rubygems-1.8.15/setup.rb"
RubyGems 1.8.15 installed

== 1.8.15 / 2012-01-06

* 1 bug fix:

  * Don't eager load yaml, it creates a bad loop. Fixes #256


------------------------------------------------------------------------------

RubyGems installed the following executables:
    /home/iop/.rvm/rubies/ree-1.8.7-2011.12/bin/gem

system:

  system:
    uname:       "Linux garden 2.6.18-194.26.1.el5 #1 SMP Tue Nov 9 12:54:20 EST 2010 x86_64 x86_64 x86_64 GNU/Linux"
    bash:        "/bin/bash => GNU bash, version 3.2.25(1)-release (x86_64-redhat-linux-gnu)"
    zsh:         " => not installed"

  rvm:
    version:      "rvm 1.10.2 by Wayne E. Seguin , Michal Papis  [https://rvm.beginrescueend.com/]"
    updated:      "3 hours 27 minutes 27 seconds ago"

  homes:
    gem:          "not set"
    ruby:         "not set"

  binaries:
    ruby:         "/home/iop/.rvm/bin/ruby"
    irb:          "/home/iop/.rvm/bin/irb"
    gem:          "/home/iop/.rvm/bin/gem"
    rake:         "/home/iop/.rvm/bin/rake"

  environment:
    PATH:         "/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:/home/iop/bin:/home/iop/.rvm/bin"
    GEM_HOME:     ""
    GEM_PATH:     ""
    MY_RUBY_HOME: ""
    IRBRC:        ""
    RUBYOPT:      ""
    gemset:       ""

$ rvm list

rvm rubies

   ree-1.8.7-2011.12 [ x86_64 ]
 * ruby-1.9.3-p0 [ x86_64 ]

$ cat /etc/*issue
CentOS release 5.5 (Final)
Kernel \r on an \m

$ uname -a
Linux garden 2.6.18-194.26.1.el5 #1 SMP Tue Nov 9 12:54:20 EST 2010 x86_64 x86_64 x86_64 GNU/Linux

Duplicate issue #715: RVM 1.10.2: failed to install ree when no ruby installed
Created: 2012-01-23T10:36:08Z
I've installed rvm in a fresh user home on a Ubuntu 10.04 (no ruby on the system).
When I launch
rvm install ree
I get this:
'ruby' was not found, cannot install rubygems unless ruby is present (Do you have an RVM ruby installed & selected?)
I have no problem with rvm 1.10.1.

Closing comment (2012-01-31T02:09:45Z): I was just checking on clean system:
Installing Ruby Enterprise Edition from source to: /home/mpapis/.rvm/rubies/ree-1.8.7-2011.12
ree-1.8.7-2011.12 - #fetching (ruby-enterprise-1.8.7-2011.12)
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 7773k  100 7773k    0     0   696k      0  0:00:11  0:00:11 --:--:-- 1050k
ree-1.8.7-2011.12 - #extracting ruby-enterprise-1.8.7-2011.12 to /home/mpapis/.rvm/src/ree-1.8.7-2011.12
Applying patch 'tcmalloc' (located at /home/mpapis/.rvm/patches/ree/1.8.7/tcmalloc.patch)
Applying patch 'stdout-rouge-fix' (located at /home/mpapis/.rvm/patches/ree/1.8.7/stdout-rouge-fix.patch)
Applying patch 'no_sslv2' (located at /home/mpapis/.rvm/patches/ree/1.8.7/no_sslv2.diff)
Applying patch 'lib64' (located at /home/mpapis/.rvm/patches/ree/lib64.patch)
ree-1.8.7-2011.12 - #installing 
'ruby' was not found, cannot install rubygems unless ruby is present (Do you have an RVM ruby installed & selected?)
ree-1.8.7-2011.12 - adjusting #shebangs for (gem irb erb ri rdoc testrb rake).
ree-1.8.7-2011.12 - #importing default gemsets (/home/mpapis/.rvm/gemsets/)
So the REE installation was fine, there is other bug - it could not install(update) rubygems for now you can use rvm rubygems latest.
Also I close this bug as duplicate of #733 which describes this issue a lot better.