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: https://github.com/travis-ci/travis-ci/issues/2253
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:
- Install Xcode 4.2
- Install the gcc standalone compiler from https://github.com/kennethreitz/osx-gcc-installer (which replaces Xcode)
- Add
export CC=gcc-4.2
to your ~/.bash_profile or equivalent (don't forget to reload it) - Run
rvm implode" then re-install rvm
http://beginrescueend.com/
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
Breaking a Large Rails App into Smaller Apps
How to Use Factorygirl to Create an Attribute Called "Alias"
Check If the Sum of Two Different Numbers in an Array Equal a Variable Number
Groups in a Gemfile in Rails 3
Generating Sequential Numbers in Multi-User Saas Application
How to Use Fiddle to Pass or Return a Struct to Native Code
Zip Up All Paperclip Attachments Stored on S3
Postgresql Ilike with Multiple Matches in Rails Activerecord
Ruby on Rails Collection Select - How to Pre-Select the Right Value
How to Trigger Mouse Event in Capybara Test
Gemfile.Lock Always Has Changes Not Staged for Commit
How to Implement Composite Primary Keys in Rails
Testing Rake Task with Rspec with Rails Environment
In Ruby, How to Remove Only 1 Match in an Array Easily