Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installing Ruby 1.9.3 is Failing for Me #1244

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

Installing Ruby 1.9.3 is Failing for Me #1244

JEG2 opened this issue Oct 18, 2012 · 14 comments
Assignees
Labels
Milestone

Comments

@JEG2
Copy link

JEG2 commented Oct 18, 2012

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

@rjsamson
Copy link
Contributor

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

@mpapis
Copy link
Member

mpapis commented Oct 19, 2012

ah this gives me some background, try this one:

rvm reinstall 1.9.3 --disable-binary

@rjsamson
Copy link
Contributor

@mpapis yup - that worked - thanks!

@mpapis
Copy link
Member

mpapis commented Oct 19, 2012

which version of osx is this? 10.7 or 10.8 ?

@rjsamson
Copy link
Contributor

10.8.2

@mpapis
Copy link
Member

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

@ghost ghost assigned mpapis Oct 19, 2012
@mpapis
Copy link
Member

mpapis commented Oct 19, 2012

extracted 1. to #1248

mpapis added a commit that referenced this issue Oct 19, 2012
@michaeldever
Copy link

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?

@mpapis
Copy link
Member

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 mpapis closed this as completed in d29c39f Oct 19, 2012
@mpapis
Copy link
Member

mpapis commented Oct 19, 2012

scheduled for 1.16.16

@yermej
Copy link

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.

@papersail
Copy link

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.

@michael-groble
Copy link

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

@mpapis
Copy link
Member

mpapis commented Oct 20, 2012

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

7 participants