我無法使用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