【发布时间】:2012-12-02 22:08:20
【问题描述】:
我正在尝试使用 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”
【问题讨论】:
-
你读过
/Users/stephentrovato/.rvm/log/ruby-1.9.3/extract.log吗? -
你的mac上有xcode吗?
-
您是否安装了 xcode 或命令行工具?
-
它在一个不可见的文件夹中,在 Finder 中看不到。在终端中,尝试
open -e /Users/stephentrovato/.rvm/log/ruby-1.9.3/extract.log
标签: ruby