Note that there are some explanatory texts on larger screens.

plurals
  1. POCan't install jruby on ubuntu using rvm
    primarykey
    data
    text
    <p>I can't install jruby on ubuntu 11.10 using rvm.</p> <pre><code>jatin@silverSpoon:~$ rvm install jruby jruby-1.6.4 - #fetching jruby-1.6.4 - #extracting jruby-bin-1.6.4 to /home/jatin/.rvm/src/jruby-1.6.4 ERROR: Error running 'tar xzf "/home/jatin/.rvm/archives/jruby-bin-1.6.4.tar.gz" -C /home/jatin/.rvm/tmp/rvm_src_4913 --no-same-owner', please read /home/jatin/.rvm/log/jruby-1.6.4/extract.log ERROR: There has been an error while trying to extract the source. Halting the installation. ERROR: There has been an error while trying to fetch the source. Halting the installation. </code></pre> <p>Other useful information:</p> <pre><code>jatin@silverSpoon:~$ which ant /usr/bin/ant </code></pre> <p>The contents of the log file generated are:</p> <pre><code>jatin@silverSpoon:~$ cat ~/.rvm/log/jruby-1.6.4/extract.log [2012-02-22 00:47:37] tar xzf "/home/jatin/.rvm/archives/jruby-bin-1.6.4.tar.gz" -C /home/jatin/.rvm/tmp/rvm_src_4913 --no-same-owner gzip: stdin: not in gzip format tar: Child returned status 1 tar: Error is not recoverable: exiting now </code></pre> <p>Java installed on my machine are:</p> <pre><code>jatin@silverSpoon:~$ update-alternatives --config java There are 3 choices for the alternative java (providing /usr/bin/java). Selection Path Priority Status ------------------------------------------------------------ 0 /usr/lib/jvm/java-6-openjdk/jre/bin/java 1061 auto mode 1 /usr/lib/jvm/java-6-openjdk/jre/bin/java 1061 manual mode 2 /usr/lib/jvm/java-7-openjdk-i386/jre/bin/java 1051 manual mode * 3 /usr/lib/jvm/jdk1.7.0/jre/bin/java 3 manual mode Press enter to keep the current choice[*], or type selection number: </code></pre> <p>What is wrong here?</p> <p><strong>EDIT:</strong><br> On trying the answer, I get this</p> <pre><code>jatin@silverSpoon:~/android/eclipse$ rvm remove jruby it seems that /home/jatin/.rvm/src/jruby-1.6.4 is already non existent. it seems that /home/jatin/.rvm/rubies/jruby-1.6.4 is already non existent. Removing jruby-1.6.4 aliases... Removing jruby-1.6.4 wrappers... Removing jruby-1.6.4 environments... Removing jruby-1.6.4 binaries... </code></pre> <p>and on <code>rvm install jruby</code>, I get the same error.</p> <p><strong>P.S</strong>.<br> I am able to install <code>jruby-head</code> without any errors, but not any other jruby version.</p> <p><strong>EDIT 2:</strong><br> I finally got it working, by installing the necessary dependencies for jruby.<br> See my answer below.</p>
    singulars
    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.
    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