3

我正在尝试使用 rvm 升级 Ruby。我收到这个错误。第一篇文章。

macbook:bin stephentrovato$ rvm install 1.9.3
Installing Ruby from source to: /Users/stephentrovato/.rvm/rubies/ruby-1.9.3, this may         take a while depending on your cpu(s)...

ruby-1.9.3 - #fetching 
ERROR: Error running 'bunzip2 '/Users/stephentrovato/.rvm/archives/ruby-1.9.3-.tar.bz2'', please read /Users/stephentrovato/.rvm/log/ruby-1.9.3/extract.log
ruby-1.9.3 - #extracting ruby-1.9.3- to /Users/stephentrovato/.rvm/src/ruby-1.9.3
ERROR: Error running 'tar xf /Users/stephentrovato/.rvm/archives/ruby-1.9.3-.tar -C /Users/stephentrovato/.rvm/tmp/rvm_src_1714', please read /Users/stephentrovato/.rvm/log/ruby-1.9.3/extract.log
ERROR: There has been an error while trying to extract the source.  
Halting the installation.
ERROR: There has been an error fetching the ruby interpreter. Halting the installation.

编辑:错误日志 - [2012-12-02 17:52:35] tar xf /Users/stephentrovato/.rvm/archives/ruby-1.9.3-.tar -C /Users/stephentrovato/.rvm/tmp/rvm_src_2516 tar:打开存档时出错:无法打开“/Users/stephentrovato/.rvm/archives/ruby-1.9.3-.tar”

4

1 回答 1

1

RVM 发生了一些奇怪的事情,它没有正确选择补丁级别。有很多引用ruby-1.9.3-应该是ruby-1.9.3-p327. 我认为这就是它无法获取存档的原因,应该与 Xcode 无关。

尝试更新您的 RVM rvm get stable,然后重试。

于 2012-12-03T13:15:54.227 回答