Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7190143
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T19:27:04+00:00 2026-05-28T19:27:04+00:00

I am deploying Ruby On Rails apps on an Amazon EC2 cloud server. The

  • 0

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).

I’ve installed my Ruby environment with RVM (installed as root). I’ve setup two rubies:

  • REE 1.8.7
  • Ruby 1.9.2-p290

For each Rails app I deploy, I create a separate RVM gemset.

Since I ran in this problem, I’ve refreshed completely the Ruby environment by running rvm implode.

Here are my environment versions:

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 this rvm implode:

  • I installed again the 2 rubies
  • I created a gemset for a ree-1.8.7 app and installed the gems required -> no problem
  • I created a gemset for a ruby-1.9.2 app and installed the gems through Bundle -> no problem, even for the gems with native extensions
  • I created a gemset for another ruby-1.9.2, tried to install the gems through Bundle… here it comes again!

This is what I get know when performing bundle install (logged in 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 gem install correctly, and I can just use bundle install which will run until the next gem with native extensions…

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.

Thanks in advance for your help!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T19:27:06+00:00Added an answer on May 28, 2026 at 7:27 pm

    This might be due to insufficient memory for compiling the native extensions. In my experience, bundle install is more memory intensive than simply using gem install. Take a look at /var/log/messages and see if any such issues are present. Also, use top to identify any heavyweight processes, like colleagues leaving rails console running in a screen session. 😉

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

What is the best linux distro for deploying ruby on rails web apps on
How can I go about deploying a Rails app on a cluster of Amazon
Bundler version 1.0.22 Deploying to RedHat Linux 6 Ruby 1.9.3p0 Rails 3.2.1 I read
Very soon I plan on deploying my first Ruby on Rails application to a
I am having problems deploying a Rails app to Heroku, I can't even run
My setup I am deploying a Ruby on Rails application to 70+ hosts. These
My setup I am deploying a Ruby on Rails application to 70+ hosts. These
I'm deploying my Rails 3 application to a Tomcat 6 server. I've been using
I am learning ruby from this guide http://ruby.railstutorial.org/ruby-on-rails-tutorial-book#sec:deploying , and I am trying to
I am using deploying a Ruby on Rails app to a Linode VPS using

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.