I am deploying Ruby On Rails applications on an Amazon EC2 cloud server. The server runs on Amazon Linux alami-2011.02. I canβt say which distribution it is based on (from my search, RedHat / CentOS, but I'm new to this field).
I installed the Ruby environment with RVM (installed as root). I installed two rubies:
For each Rails application that I deploy, I create a separate Gemset RVM.
Since I ran into this problem, I completely updated the Ruby environment by running rvm implode .
Here are my versions of the environment:
ruby -v ---> ruby 1.9.2p290 (2011-07-09 revision 32553) [x86_64-linux] rvm -v ---> 1.8.1 gem -v ---> 1.6.2 bundle -v ---> Bundler version 1.0.18
After that rvm implode :
- I installed 2 rubiks again
- I created a gemset for the ree-1.8.7 application and installed the necessary gems -> no problem
- I created a gemset for ruby-1.9.2 application and installed gems through Bundle -> no problem, even for gems with native extensions
- I created a gemset for another ruby-1.9.2, tried to set gems through the Bundle ... here it appears again!
This is what I know when executing bundle install (registered as root):
Updating https://github.com/p7r/will_paginate.git Fetching source index for http://rubygems.org/ Installing rake (0.9.2) Installing multi_json (1.0.3) Installing activesupport (3.1.0) Installing bcrypt-ruby (3.0.0) with native extensions /usr/local/rvm/scripts/rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/installer.rb:552:in `rescue in block in build_extensions': ERROR: Failed to build gem native extension. (Gem::Installer::ExtensionBuildError) /usr/local/rvm/scripts/rvm/rubies/ruby-1.9.2-p290/bin/ruby extconf.rb Gem files will remain installed in /usr/local/rvm/scripts/rvm/gems/ ruby-1.9.2-p290@app /gems/bcrypt-ruby-3.0.0 for inspection. Results logged to /usr/local/rvm/scripts/rvm/gems/ ruby-1.9.2-p290@app /gems/bcrypt-ruby-3.0.0/ext/mri/gem_make.out [ removed the backtrace ]
However, if I just use gem install bcrypt , the pearl installs correctly, and I can just use bundle install , which will work until the next stone with native extensions ...
I had the same problem with installing ruby-1.9.2-p180, I tried to downgrade RubyGems to different versions to 1.5.3, I blew my RVM ... I searched a lot on the Internet for answers, this problem seems to be repeated, but for nothing worked for me.
Thanks in advance for your help!