Note that there are some explanatory texts on larger screens.

plurals
  1. POCan't fix 'bundle install' failing for gems with native extensions
    primarykey
    data
    text
    <p>I am deploying Ruby On Rails apps on an Amazon EC2 cloud server. The server is running on Amazon Linux alami-2011.02. I can't say the distro it's based on (from my search, RedHat/CentOS, but I'm newbie in that field).</p> <p>I've installed my Ruby environment with RVM (installed as root). I've setup two rubies:</p> <ul> <li>REE 1.8.7</li> <li>Ruby 1.9.2-p290</li> </ul> <p>For each Rails app I deploy, I create a separate RVM gemset.</p> <p>Since I ran in this problem, I've refreshed completely the Ruby environment by running <code>rvm implode</code>.</p> <p>Here are my environment versions:</p> <pre><code>ruby -v ---&gt; ruby 1.9.2p290 (2011-07-09 revision 32553) [x86_64-linux] rvm -v ---&gt; 1.8.1 gem -v ---&gt; 1.6.2 bundle -v ---&gt; Bundler version 1.0.18 </code></pre> <p>After this <code>rvm implode</code>:</p> <ul> <li>I installed again the 2 rubies</li> <li>I created a gemset for a ree-1.8.7 app and installed the gems required -> no problem</li> <li>I created a gemset for a ruby-1.9.2 app and installed the gems through Bundle -> <strong>no problem, even for the gems with native extensions</strong></li> <li>I created a gemset for another ruby-1.9.2, tried to install the gems through Bundle... <strong>here it comes again!</strong></li> </ul> <p>This is what I get know when performing <code>bundle install</code> (logged in as root):</p> <pre><code>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 ] </code></pre> <p>However, if i just use <code>gem install bcrypt</code>, the gem install correctly, and I can just use <code>bundle install</code> which will run until the next gem with native extensions...</p> <p>I've had the same issue with a ruby-1.9.2-p180 install, I tried downgrading RubyGems to different versions until 1.5.3, I imploded my RVM... I've looked a lot on the web for answers, this problem seems recurrent, but nothing worked for me.</p> <p>Thanks in advance for your help!</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload