Bundle install in a rails droplet

October 27, 2014 2.1k views

Hi Guys.

I have created a rails droplet correctly, I also have uploaded my app to the /home/rails folder, however when I run the bundle install command Im getting the following error.

$ bundle install --without development test
Fetching gem metadata from
Fetching source index from
Fetching gem metadata from
Fetching additional metadata from
Resolving dependencies...

Errno::ENOMEM: Cannot allocate memory - sudo -p "

Your user account isn't allowed to install to the system Rubygems.
You can cancel this installation and run:

    bundle install --path vendor/bundle

to install the gems into ./vendor/bundle/, or you can enter your password
and install the bundled gems to Rubygems using sudo.

Password: " cp -R /tmp/bundler20141027-11940-qr2da1/rake-10.3.2/build_info/* /usr/local/rvm/gems/ruby-2.1.3/build_info
An error occurred while installing rake (10.3.2), and Bundler cannot continue.
Make sure that `gem install rake -v '10.3.2'` succeeds before bundling.

It's worth mention that I have created a new user, maybe I need to add this new user to group or something?

Also, when I try to run the command as root I got this error:

    # bundle install --without development test
    bash: /usr/local/bin/bundle: /usr/bin/ruby1.8: bad interpreter: No such file or directory

Any help will be appreciate.


Be the first one to answer this question.