Can't install ree-1.8.7-2011.12 when a .rvmrc is present #1148

Closed
cheister opened this Issue Sep 27, 2012 · 9 comments

Projects

None yet

2 participants

@cheister

The latest version of rvm causes the install of ree-1.8.7-2011.12 to hang because it doesn't set the location of lib64.patch correctly.

~ rvm --version

rvm 1.16.5 (stable) by Wayne E. Seguin <wayneeseguin@gmail.com>, Michal Papis <mpapis@gmail.com> [https://rvm.io/]


~ rvm info

ruby-1.9.3-p194:

  system:
    uname:       "Darwin test2.local 11.4.0 Darwin Kernel Version 11.4.0: Mon Apr  9 19:32:15 PDT 2012; root:xnu-1699.26.8~1/RELEASE_X86_64 x86_64"
    system:      "osx/10.7/x86_64"
    bash:        "/bin/bash => GNU bash, version 3.2.48(1)-release (x86_64-apple-darwin11)"
    zsh:         "/bin/zsh => zsh 4.3.11 (i386-apple-darwin11.0)"

  rvm:
    version:      "rvm 1.16.5 (stable) by Wayne E. Seguin <wayneeseguin@gmail.com>, Michal Papis <mpapis@gmail.com> [https://rvm.io/]"
    updated:      "11 minutes 53 seconds ago"

  ruby:
    interpreter:  "ruby"
    version:      "1.9.3p194"
    date:         "2012-04-20"
    platform:     "x86_64-darwin11.4.0"
    patchlevel:   "2012-04-20 revision 35410"
    full_version: "ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-darwin11.4.0]"

  homes:
    gem:          "/Users/testuser/.rvm/gems/ruby-1.9.3-p194"
    ruby:         "/Users/testuser/.rvm/rubies/ruby-1.9.3-p194"

  binaries:
    ruby:         "/Users/testuser/.rvm/rubies/ruby-1.9.3-p194/bin/ruby"
    irb:          "/Users/testuser/.rvm/rubies/ruby-1.9.3-p194/bin/irb"
    gem:          "/Users/testuser/.rvm/rubies/ruby-1.9.3-p194/bin/gem"
    rake:         "/Users/testuser/.rvm/gems/ruby-1.9.3-p194@global/bin/rake"

  environment:
    PATH:         "/Users/testuser/.rvm/gems/ruby-1.9.3-p194/bin:/Users/testuser/.rvm/gems/ruby-1.9.3-p194@global/bin:/Users/testuser/.rvm/rubies/ruby-1.9.3-p194/bin:/Users/testuser/.rvm/bin:/usr/local/bin:/usr/local/sbin:/Users/testuser/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/X11/bin"
    GEM_HOME:     "/Users/testuser/.rvm/gems/ruby-1.9.3-p194"
    GEM_PATH:     "/Users/testuser/.rvm/gems/ruby-1.9.3-p194:/Users/testuser/.rvm/gems/ruby-1.9.3-p194@global"
    MY_RUBY_HOME: "/Users/testuser/.rvm/rubies/ruby-1.9.3-p194"
    IRBRC:        "/Users/testuser/.rvm/rubies/ruby-1.9.3-p194/.irbrc"
    RUBYOPT:      ""
    gemset:       ""


~ 

if I got into a subdirectory with a .rvmrc file then the install of ree-1.8.7-2011.12 hangs

~ cd subdir/
Using /Users/testuser/.rvm/gems/ruby-1.9.3-p194 with gemset testgemset

~/subdir cat .rvmrc
rvm use --create ruby-1.9.3@testgemset

~/subdir rvm install ree-1.8.7-2011.12
No binary rubies available for: ///ree-1.8.7-2011.12.
Continuing with compilation. Please read 'rvm mount' to get more information on binary rubies.
Installing Ruby Enterprise Edition from source to: /Users/testuser/.rvm/rubies/ree-1.8.7-2011.12
ree-1.8.7-2011.12 - #fetching (ruby-enterprise-1.8.7-2011.12)
ree-1.8.7-2011.12 - #extracting ruby-enterprise-1.8.7-2011.12 to /Users/testuser/.rvm/src/ree-1.8.7-2011.12
Applying patch /Users/testuser/.rvm/patches/ree/1.8.7/tcmalloc.patch
Applying patch /Users/testuser/.rvm/patches/ree/1.8.7/stdout-rouge-fix.patch
Applying patch /Users/testuser/.rvm/patches/ree/1.8.7/no_sslv2.diff
-bash: cd: /Users/testuser/.rvm/src/ruby-1.9.3-p194: No such file or directory
Applying patch 'lib64' (located at )

The same install works from the top level directory where this is no .rvmrc file

~ ls .rvmrc
ls: .rvmrc: No such file or directory

~ rvm remove ree-1.8.7-2011.12
Removing /Users/testuser/.rvm/src/ree-1.8.7-2011.12...
Removing /Users/testuser/.rvm/rubies/ree-1.8.7-2011.12...
Removing ree-1.8.7-2011.12 aliases...
Removing ree-1.8.7-2011.12 wrappers...
Removing ree-1.8.7-2011.12 environments...
Removing ree-1.8.7-2011.12 binaries...

~ rvm install ree-1.8.7-2011.12
No binary rubies available for: ///ree-1.8.7-2011.12.
Continuing with compilation. Please read 'rvm mount' to get more information on binary rubies.
Installing Ruby Enterprise Edition from source to: /Users/testuser/.rvm/rubies/ree-1.8.7-2011.12
ree-1.8.7-2011.12 - #fetching (ruby-enterprise-1.8.7-2011.12)
ree-1.8.7-2011.12 - #extracting ruby-enterprise-1.8.7-2011.12 to /Users/testuser/.rvm/src/ree-1.8.7-2011.12
Applying patch /Users/testuser/.rvm/patches/ree/1.8.7/tcmalloc.patch
Applying patch /Users/testuser/.rvm/patches/ree/1.8.7/stdout-rouge-fix.patch
Applying patch /Users/testuser/.rvm/patches/ree/1.8.7/no_sslv2.diff
Applying patch 'lib64' (located at /Users/testuser/.rvm/patches/ree/lib64.patch)
ree-1.8.7-2011.12 - #installing
Retrieving rubygems-1.8.24
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  371k  100  371k    0     0   695k      0 --:--:-- --:--:-- --:--:-- 3603k
Extracting rubygems-1.8.24 ...
Removing old Rubygems files...
Installing rubygems-1.8.24 for ree-1.8.7-2011.12 ...
Installation of rubygems completed successfully.
Saving wrappers to '/Users/testuser/.rvm/bin'.
ree-1.8.7-2011.12 - #importing default gemsets (/Users/testuser/.rvm/gemsets/)
~ 
@mpapis
Member
mpapis commented Sep 27, 2012

please check after c8e4342:

rvm get head
@mpapis mpapis was assigned Sep 27, 2012
@cheister

I think the change has a typo:

rvm install ree-1.8.7-2011.12
No binary rubies available for: ///ree-1.8.7-2011.12.
Continuing with compilation. Please read 'rvm mount' to get more information on binary rubies.
Installing Ruby Enterprise Edition from source to: /Users/testuser/.rvm/rubies/ree-1.8.7-2011.12
ree-1.8.7-2011.12 - #fetching (ruby-enterprise-1.8.7-2011.12)
ree-1.8.7-2011.12 - #extracting ruby-enterprise-1.8.7-2011.12 to /Users/testuser/.rvm/src/ree-1.8.7-2011.12
Applying patch /Users/testuser/.rvm/patches/ree/1.8.7/tcmalloc.patch
Applying patch /Users/testuser/.rvm/patches/ree/1.8.7/stdout-rouge-fix.patch
Applying patch /Users/testuser/.rvm/patches/ree/1.8.7/no_sslv2.diff
-bash: buitin: command not found
Applying patch 'lib64' (located at )
@mpapis mpapis added a commit that referenced this issue Sep 27, 2012
@mpapis mpapis fix c8e4342, update #1148 55ebbb6
@cheister

I'm still getting the same error as before

$ rvm install ree-1.8.7-2011.12
Removing /Users/testuser/.rvm/src/ree-1.8.7-2011.12...
Removing /Users/testuser/.rvm/rubies/ree-1.8.7-2011.12...
No binary rubies available for: ///ree-1.8.7-2011.12.
Continuing with compilation. Please read 'rvm mount' to get more information on binary rubies.
Installing Ruby Enterprise Edition from source to: /Users/testuser/.rvm/rubies/ree-1.8.7-2011.12
ree-1.8.7-2011.12 - #fetching (ruby-enterprise-1.8.7-2011.12)
ree-1.8.7-2011.12 - #extracting ruby-enterprise-1.8.7-2011.12 to /Users/testuser/.rvm/src/ree-1.8.7-2011.12
Applying patch /Users/testuser/.rvm/patches/ree/1.8.7/tcmalloc.patch
Applying patch /Users/testuser/.rvm/patches/ree/1.8.7/stdout-rouge-fix.patch
Applying patch /Users/testuser/.rvm/patches/ree/1.8.7/no_sslv2.diff
-bash: cd: /Users/testuser/.rvm/src/ruby-1.9.3-p194: No such file or directory
Applying patch 'lib64' (located at )

I looked at the source for ~/.rvm/scripts/functions/manage/ree and confirmed that the change was there

@cheister

Now I get this error:

$ rvm install ree-1.8.7-2011.12
No binary rubies available for: ///ree-1.8.7-2011.12.
Continuing with compilation. Please read 'rvm mount' to get more information on binary rubies.
Installing Ruby Enterprise Edition from source to: /Users/testuser/.rvm/rubies/ree-1.8.7-2011.12
ree-1.8.7-2011.12 - #fetching (ruby-enterprise-1.8.7-2011.12)
ree-1.8.7-2011.12 - #extracting ruby-enterprise-1.8.7-2011.12 to /Users/testuser/.rvm/src/ree-1.8.7-2011.12
Applying patch /Users/testuser/.rvm/patches/ree/1.8.7/tcmalloc.patch
Applying patch /Users/testuser/.rvm/patches/ree/1.8.7/stdout-rouge-fix.patch
Applying patch /Users/testuser/.rvm/patches/ree/1.8.7/no_sslv2.diff
-bash: pushd: /Users/testuser/.rvm/src/ruby-1.9.3-p194: No such file or directory
Patch 'lib64' not found.
-bash: popd: directory stack empty
There has been an error while trying to apply patches to ree. 
Halting the installation.
@mpapis mpapis closed this in eb8de33 Sep 27, 2012
@mpapis
Member
mpapis commented Sep 27, 2012

let me know if it worked, part of the fixes should be merged back to stable

@cheister

I just tried it. stable does not work, I get the same original error. head does work. Thanks for the quick turnaround.

@mpapis
Member
mpapis commented Sep 28, 2012

c8e4342 55ebbb6 f2a4cce - should be merged to stable 1.16.x

@mpapis mpapis reopened this Sep 28, 2012
@mpapis
Member
mpapis commented Sep 28, 2012

missed eb8de33

@mpapis mpapis added a commit that referenced this issue Sep 28, 2012
@mpapis mpapis fix c8e4342, update #1148 ec97d15
@mpapis mpapis closed this in a50d22e Sep 28, 2012
@mpapis
Member
mpapis commented Sep 28, 2012

1.16.6 released:

rvm get stable
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment