Skip to content
Advertisement

error installing ruby 1.9.3 on linux server

Hey I’m just to update ruby on a linux server I ssh into. I know there a lot of threads on this but most are for installing on mac osx (which i dont have an issue with). This is the error log thats outputted:

JavaScript

this is the content of the make.log per a commenter’s request:

JavaScript

Advertisement

Answer

I think your issue is that, since RVM is trying to compile ruby with the command __rvm_make -j48 (which tells the compiler to try to parallelize the compilation across 48 different jobs), your host system is running out of space to do so. Before I get to a possible solution, here are some high-level thoughts:

  1. Production systems generally shouldn’t be compiling their own Ruby versions. Instead, ship the compiled binaries to the node (e.g., as a Debian package) and don’t even install RVM.

  2. rvm does a lot of magic to try and hide the details of what its doing from the end-user, but in my experience that’s more trouble than it’s worth. Use chruby or rbenv and build Ruby only when you need to.

Anyway, for your current issue, I think your best bet is to try to override the -j flag to a smaller value. There are a few methods, but first try this:

JavaScript

If that doesn’t help, double-check that the -j argument in __rvm_make -j 48 actually changed to 1 in the log. If it did, try a smaller number. If it didn’t, then try this:

JavaScript

Hopefully one of those works!

User contributions licensed under: CC BY-SA
5 People found this is helpful
Advertisement