Note that there are some explanatory texts on larger screens.

plurals
  1. POUsing RVM to install Ruby WITHOUT sudo
    text
    copied!<p>In trying to install ruby 1.9.2, I get the error: </p> <pre> Error running 'make -j8', please read $HOME/.rvm/log/ruby-1.9.2-p320/1372884536_make.log There has been an error while running make. Halting the installation. </pre> <p>Then the log says:</p> <pre> gcc: Internal error: Killed (program cc1) Please submit a full bug report. See for instructions. gcc: Internal error: Killed (program cc1) Please submit a full bug report. See for instructions. make[1]: *** [callback-5.o] Error 1 make[1]: *** Waiting for unfinished jobs.... make[1]: *** [callback-4.o] Error 1 gcc: Internal error: Killed (program cc1) Please submit a full bug report. See for instructions. make[1]: *** [callback-2.o] Error 1 make[1]: Leaving directory `$HOME/.rvm/src/ruby-1.9.2-p320/ext/dl/callback' make: *** [mkmain.sh] Error 1 </pre> <p>Any idea why I am getting this error? I am running Debian 5.0.9 lenny</p> <hr> <p>Answer: I discovered that the problem was with running make with 8 threads (make -j8). For some reason this does not work on my system. To solve the problem I ran the following function before running <code>rvm install 1.9.2</code>:</p> <pre><code>make() { if [[ $@ == "-j8" ]]; then command make -j4; else command make "$@"; fi; } </code></pre> <p>What this does is whenever <code>make -j8</code> is ran, the function will replace it with <code>make -j4</code> If this still does not work, you can just run make normally with the following function:</p> <pre><code>make() { if [[ $@ == "-j8" ]]; then command make; else command make "$@"; fi; } </code></pre>
 

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