Installing Ruby 1.9.3 is Failing for Me #1244

Closed
JEG2 opened this Issue Oct 18, 2012 · 14 comments

Comments

Projects
None yet
7 participants

JEG2 commented Oct 18, 2012

If I rvm get head, I run into this issue.

Contributor

rjsamson commented Oct 19, 2012

EDIT: @JEG2 - just noticed you're getting having the libffi problem too - any ideas yet?

I'm also unable to install and my log file looks identical. I'm also now getting this error:

Libraries missing for ruby-1.9.3-p286: /opt/sm/pkg/versions/libffi/3.0.10/lib/libffi.5.dylib. Refer to your system manual for installing libraries

Which is something I've never encountered before...

Log:

➜  ~  cat ~/.rvm/log/ruby-1.9.3-p286/install.log                                         
[2012-10-18 20:12:13] make install
./miniruby -I./lib -I. -I.ext/common  ./tool/rbinstall.rb --make="make" --dest-dir="" --extout=".ext" --mflags="" --make-flags="" --data-mode=0644 --prog-mode=0755 --installed-list .installed.list --mantype="doc"
installing binary commands:   /Users/rjsamson/.rvm/rubies/ruby-1.9.3-p286/bin
installing base libraries:    /Users/rjsamson/.rvm/rubies/ruby-1.9.3-p286/lib
installing arch files:        /Users/rjsamson/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/1.9.1/x86_64-darwin12.2.0
installing pkgconfig data:    /Users/rjsamson/.rvm/rubies/ruby-1.9.3-p286/lib/pkgconfig
installing command scripts:   /Users/rjsamson/.rvm/rubies/ruby-1.9.3-p286/bin
installing library scripts:   /Users/rjsamson/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/1.9.1
installing common headers:    /Users/rjsamson/.rvm/rubies/ruby-1.9.3-p286/include/ruby-1.9.1
installing manpages:          /Users/rjsamson/.rvm/rubies/ruby-1.9.3-p286/share/man/man1
installing extension objects: /Users/rjsamson/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/1.9.1/x86_64-darwin12.2.0
installing extension objects: /Users/rjsamson/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/site_ruby/1.9.1/x86_64-darwin12.2.0
installing extension objects: /Users/rjsamson/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/vendor_ruby/1.9.1/x86_64-darwin12.2.0
installing extension headers: /Users/rjsamson/.rvm/rubies/ruby-1.9.3-p286/include/ruby-1.9.1/x86_64-darwin12.2.0
installing extension scripts: /Users/rjsamson/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/1.9.1
installing extension scripts: /Users/rjsamson/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/site_ruby/1.9.1
installing extension scripts: /Users/rjsamson/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/vendor_ruby/1.9.1
installing extension headers: /Users/rjsamson/.rvm/rubies/ruby-1.9.3-p286/include/ruby-1.9.1/ruby
installing default gems:      /Users/rjsamson/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/gems/1.9.1 (cache, doc, gems, specifications)
/Users/rjsamson/.rvm/src/ruby-1.9.3-p286/lib/fileutils.rb:244:in `mkdir': File exists - /Users/rjsamson/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/gems/1.9.1 (Errno::EEXIST)
    from /Users/rjsamson/.rvm/src/ruby-1.9.3-p286/lib/fileutils.rb:244:in `fu_mkdir'
    from /Users/rjsamson/.rvm/src/ruby-1.9.3-p286/lib/fileutils.rb:221:in `block (2 levels) in mkdir_p'
    from /Users/rjsamson/.rvm/src/ruby-1.9.3-p286/lib/fileutils.rb:219:in `reverse_each'
    from /Users/rjsamson/.rvm/src/ruby-1.9.3-p286/lib/fileutils.rb:219:in `block in mkdir_p'
    from /Users/rjsamson/.rvm/src/ruby-1.9.3-p286/lib/fileutils.rb:205:in `each'
    from /Users/rjsamson/.rvm/src/ruby-1.9.3-p286/lib/fileutils.rb:205:in `mkdir_p'
    from ./tool/rbinstall.rb:183:in `makedirs'
    from ./tool/rbinstall.rb:284:in `prepare'
    from ./tool/rbinstall.rb:539:in `block in <main>'
    from ./tool/rbinstall.rb:597:in `call'
    from ./tool/rbinstall.rb:597:in `block (2 levels) in <main>'
    from ./tool/rbinstall.rb:594:in `each'
    from ./tool/rbinstall.rb:594:in `block in <main>'
    from ./tool/rbinstall.rb:590:in `each'
    from ./tool/rbinstall.rb:590:in `<main>'
make: *** [do-install-nodoc] Error 1
Owner

mpapis commented Oct 19, 2012

ah this gives me some background, try this one:

rvm reinstall 1.9.3 --disable-binary
Contributor

rjsamson commented Oct 19, 2012

@mpapis yup - that worked - thanks!

Owner

mpapis commented Oct 19, 2012

which version of osx is this? 10.7 or 10.8 ?

Contributor

rjsamson commented Oct 19, 2012

10.8.2

Owner

mpapis commented Oct 19, 2012

two problems to fix:

  1. remove broken binary ruby for osx (or provide one that works, maybe static tokaido instead??? /cc @wycats)
  2. make sure to remove binary ruby before installing compiled one

mpapis was assigned Oct 19, 2012

Owner

mpapis commented Oct 19, 2012

extracted 1. to #1248

rvm reinstall 1.9.3 --disable-binary has fixed this issue for me too. I have the missing libffi issue too, also on OSX 10.8.2

Was also recieving this message: Gemset '' does not exist, 'rvm gemset create ' first, or append '--create'

Any other useful info I can provide?

Owner

mpapis commented Oct 19, 2012

@Barnacle the Gemset '' does not exist, 'rvm gemset create ' first, or append '--create' is different error, check other issues for it, if it exist comment for updates otherwise open a new issue with full gist of the output so I know to fix it

mpapis closed this in d29c39f Oct 19, 2012

Owner

mpapis commented Oct 19, 2012

scheduled for 1.16.16

mpapis reopened this Oct 19, 2012

yermej commented Oct 19, 2012

I was having the same issue also with Mac OS X 10.8. Reinstalling 1.9.3 with --disable-binary allowed a successful install for me as well. Thanks.

Was troubled by this same issue today. Wasted at least one hour trying to figure out myself. Finally the trick rvm reinstall 1.9.3 --disable-binary worked beautifully.

When I tried to install RVM itself from scratch today, I see both the Libraries missing for ruby-1.9.3-p286: /opt/sm/pkg/versions/libffi/3.0.10/lib/libffi.5.dylib... error from here and then, lower down, the Gemset '' does not exist from #895. The steps I need to take to install from scratch:

curl -L https://get.rvm.io | bash -s stable --ruby
source ~/.rvm/scripts/rvm
rvm reinstall 1.9.3 --disable-binary
Owner

mpapis commented Oct 20, 2012

@michael-groble it is fixed on head not in stable yet as noted here: wayneeseguin#1244 (comment) - it will be available in RVM 1.16.16

mpapis closed this in 07f09da Oct 22, 2012

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