简体   繁体   English

在OS X 10.8.1上安装Ruby 1.9.3时出错

[英]Error installing Ruby 1.9.3 on OS X 10.8.1

I am trying to upgrade Ruby with rvm. 我正在尝试使用rvm升级Ruby。 I am getting this error. 我收到了这个错误。 First post. 第一篇文章。

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.

Edit: Error log - [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: Error opening archive: Failed to open '/Users/stephentrovato/.rvm/archives/ruby-1.9.3-.tar' 编辑:错误日志 - [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'

There's something weird happening with RVM, it's not choosing the patchlevel correctly. RVM有些奇怪的事情,它没有正确选择补丁级别。 There's lots of references to ruby-1.9.3- which should be ruby-1.9.3-p327 . 有很多引用ruby-1.9.3-应该是ruby-1.9.3-p327 I think that's why it can't fetch the archive, should be nothing to do with Xcode. 我认为这就是为什么它无法获取存档,应该与Xcode无关。

Try updating your RVM by doing rvm get stable and then try again. 尝试通过rvm get stable更新您的RVM,然后再试一次。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM