Bundler Fails to Install on OS X Lion with RVM and Ruby 1.8.7 #1058

eddorre opened this Issue Feb 27, 2011 · 11 comments


None yet
7 participants

eddorre commented Feb 27, 2011

When trying to install Bundler on OS X Lion with Ruby 1.8.7 downloaded through RVM, I get a segmentation fault.

Installing Bundler under Ruby 1.9.2 works fine.

Here is the information from the console:

Carlos-Rodriguezs-MacBook-Pro:~ carlos$ rvm install ruby-1.8.7
Install of ruby-1.8.7-p334 - #complete
Carlos-Rodriguezs-MacBook-Pro:~ carlos$ rvm use ruby-1.8.7 --default
Using /Users/carlos/.rvm/gems/ruby-1.8.7-p334
Carlos-Rodriguezs-MacBook-Pro:~ carlos$ which ruby
Carlos-Rodriguezs-MacBook-Pro:~ carlos$ gem install bundler
/Users/carlos/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/timeout.rb:60: [BUG] Segmentation fault
ruby 1.8.7 (2011-02-18 patchlevel 334) [i686-darwin11.0.0]

Abort trap: 6


indirect commented Feb 27, 2011

Thank you for reporting this. Unfortunately, I don't understand how this bug is related to the Bundler gem. The ruby code raising the segfault is timeout.rb, which is part of the stdlib, and the command that you ran is from rubygems, also part of the ruby. Maybe you should report this to the RVM guys?

eddorre commented Feb 27, 2011


Thanks for taking the time to respond to this. Can you close the ticket? I'll bring this up to the RVM guys.

Thanks again.

It affects not only Bundler but any other gems. Sometimes installing rubies as well (install process segfaults for example).

However, on 1.9.2 (installed via RVM) looks like it's working fine, not having that much success with 1.8.6 or 1.8.7 on the other hand...

running export CC=/usr/bin/gcc-4.2 and then compiling 1.8.7 fixes the issue in lion

defmthd commented May 17, 2011

Running export CC=/usr/bin/gcc-4.2 may fix Ruby 1.8.7 compiling problem. But not "gem install bundler" problem in Lion.

Actually, @peanut, it does resolve the issue. If you run "export CC=/usr/bin/gcc-4.2" then install ruby you won' get the Segmentation fault.

just tried the solution above and the Bundler gem fails to install, even if the C compiler is explicitly set to GCC 4.2. the installer fails with the same abort trap error.

I am on...

  • Lion Dev Preview 3 (build 11A459e)
  • ruby 1.8.7 (2011-02-18 patchlevel 334) [i686-darwin11.0.0]
  • rvm version 1.6.13

indirect commented May 31, 2011

@liquid I'm confused -- if this is an issue with gem install, why are we talking about it on the bundler issue tracker? :)

@indirect, sorry if i am posting into the wrong channel (in which case please point me to a better direction) but i only experienced this issue when trying to install bundler. all other gems install correctly, so seems to me that it's been a bundler specific issue.


indirect commented Jun 1, 2011

@liquid, please see ISSUES and submit a ticket for your specific issue, since you seem to be having a different problem than the OP (which appeared to be an RVM bug). Thanks.

I know this isn't the most appropriate thread for this, since it wasn't a bundler issue specifically, but if you're like me, you'll google for the answer and come across this, and still be confused as ever.

If you're having the problem described by OP, see this StackOverflow answer. Also, make sure that you have gcc-4.2 installed, as later versions of gcc with XCode and Command Line Tools for XCode are llvm-based, which aren't compatible with rubies prior to 1.9.3.

This issue was closed.

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