Install Bundler Using Rvm, Ruby 1.8.7 with Gcc 4.7 on Linux

install bundler using rvm, ruby 1.8.7 with gcc 4.7 on linux

The description of the problem in the links in the original question suggest installing older versions of gcc to build 1.8.7, this is not necessary.

$ rvm remove 1.8.7
$ CFLAGS="-O2 -fno-tree-dce -fno-optimize-sibling-calls" rvm install 1.8.7
$ rvm use 1.8.7
$ gem install bundler

Solution derived from the following:

Bug #6383: Segfault in Timeout module when compiled with GCC 4.7

Failed to configure Ruby with RVM on Fedora15

I cannot run rvm to install any version of ruby with gcc-4.6.3.
Finally get it resolved via suggestion in the post:
install bundler using rvm, ruby 1.8.7 with gcc 4.7 on linux

rvm install 1.8.7 error

I just installed a new version (1.20.5) of the RVM and I was able to put the ruby version 1.8.7

I install rvm -v from ubuntu repos

rvm 1.6.9

and try again

rvm install 1.8.7-p371

and it worked for me

Install of ruby-1.8.7-p371 - #complete 

Install ruby and use bundler with capistrano

What I did is use capistrano-bundler after all, but set :bundle_bins, [:rake], as rake is all I needed. Not a perfect solution, probably, but when was it the last time it was perfect... :)

issues with gem path with travis ci and ruby 1.8.7

Looks like a bug in Travis-ci:

There appears to be a workaround, but it haven't tried it.

BUG Bus Error ruby 1.8.7

Since I had to parse through several of these answers to get things working with XCode 4.2, I thought I'd put it all together:

  1. Install Xcode 4.2
  2. Install the gcc standalone compiler from (which replaces Xcode)
  3. Add export CC=gcc-4.2 to your ~/.bash_profile or equivalent (don't forget to reload it)
  4. Run rvm implode" then re-install rvm

At this point I was able to rvm install ruby-1.8.7 (and ruby-1.9.2), and actually get my gems to install.

Related Topics

Leave a reply