我无法使用rvm在ubuntu 11.10上安装jruby。无法使用rvm在ubuntu上安装jruby
[email protected]:~$ 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.
其他有用的信息:
[email protected]:~$ which ant
/usr/bin/ant
生成的日志文件的内容是:
[email protected]:~$ 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
的Java安装在我的机器上是:
[email protected]:~$ 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:
是什么这里错了吗?
编辑:
在试图回答,我得到这个
[email protected]:~/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...
和rvm install jruby
,我得到了同样的错误。
P.S。
我能够安装jruby-head
没有任何错误,但没有任何其他jruby版本。
编辑2:
我终于得到了它的工作,通过安装必要的依赖JRuby的。
请参阅下面的答案。
'rvm cleanup all'会删除我所有的gemsets和宝石安装??? – 2012-02-21 10:08:26
试过。没有工作:( – 2012-02-21 10:20:12
是的,我在RVM网站上进行了双重检查,但是我仍然得到相同的错误,奇怪的部分是我可以安装jruby-head,但没有其他版本 – 2012-02-21 10:25:26