2012-07-25 173 views
2

我正嘗試使用rvm安裝ruby。我得到以下錯誤在下面的命令 -使用rvm安裝ruby 1.9.3時出錯

rvm install 1.9.3

Extracting rubygems-latest-1.8 ...

ERROR: Error running 'gunzip < /usr/share/ruby-rvm/archives/rubygems-latest-1.8.tgz | tar xf - -C /usr/share/ruby-rvm/src', please read /usr/share/ruby-rvm/log/ruby-1.9.3-p194/rubygems.extract.log

Installing rubygems for /usr/share/ruby-rvm/rubies/ruby-1.9.3-p194/bin/ruby

ERROR: Error running 'GEM_PATH="/usr/share/ruby-rvm/gems/ruby-1.9.3-p194:/usr/share/ruby-rvm/gems/[email protected]:/usr/share/ruby-rvm/gems/ruby-1.9.3-p194:/usr/share/ruby-rvm/gems/[email protected]" GEM_HOME="/usr/share/ruby-rvm/gems/ruby-1.9.3-p194" "/usr/share/ruby-rvm/rubies/ruby-1.9.3-p194/bin/ruby" "/usr/share/ruby-rvm/src/rubygems-latest-1.8/setup.rb"', please read /usr/share/ruby-rvm/log/ruby-1.9.3-p194/rubygems.install.log

下面是從日誌文件中的提取物 -

[2012-07-25 09:29:03] gunzip < /usr/share/ruby-rvm/archives/rubygems-latest-1.8.tgz | tar xf - -C /usr/share/ruby-rvm/src

gzip: stdin: not in gzip format tar: This does not look like a tar archive tar: Exiting with failure status due to previous errors [2012-07-25 09:31:08] gunzip < /usr/share/ruby-rvm/archives/rubygems-latest-1.8.tgz | tar xf - -C /usr/share/ruby-rvm/src

gzip: stdin: not in gzip format tar: This does not look like a tar archive tar: Exiting with failure status due to previous errors

+0

根據說明,您在'/ usr/share/ruby​​-rvm/log/ruby​​-1.9.3-p194/ruby​​gems.extract.log'中看到了什麼? – Phrogz 2012-07-25 04:19:03

+0

我已經在問題中的日誌文件中添加了詳細信息。 – murtaza52 2012-07-25 04:22:28

+0

它可能是rvm本身?我有通過apt安裝的v1.6.9。 http://stackoverflow.com/questions/8398479/using-rvm-but-cant-set-current-ruby-version-ubuntu-11-10 – murtaza52 2012-07-25 04:27:05

回答

相關問題