错误总线错误红宝石1.8.7 [英] BUG Bus Error ruby 1.8.7
问题描述
我在使用Xcode 4.2 GM(新MacBook)在Lion 10.7.1上使用RVM编译Ruby 1.8.7后出现错误。
编译好但是当我尝试安装任何宝石时,我得到以下内容:
gem install bundler
/Users/me/.rvm /rubies/ruby-1.8.7-p352/lib/ruby/1.8/timeout.rb:60:[错误]总线错误
ruby 1.8.7(2011-06-30 patchlevel 352)[i686-darwin11。 1.0]
中止陷阱:6
更新:最后我希望安装Xcode 4.2,安装了Ruby 1.8.7,1.9.x的RVM,并且所有工作都正常。
因为我必须解析几个这些答案才能使用XCode 4.2,所以我认为我会把它放在一起:
- 安装Xcode 4.2
- 从 https://github.com/kennethreitz/osx-gcc-installer (代替Xcode)
- 添加
export CC = gcc-4.2
到您的〜/ .bash_profile或同等版本(don忘了重新加载它)
- 运行
rvm implode然后重新安装rvm
http://beginrescueend.com/
此时我是能够rvm安装ruby-1.8.7(和ruby-1.9.2),并且实际上可以安装我的宝石。
I'm getting an error after compiling Ruby 1.8.7 using RVM on Lion 10.7.1 with Xcode 4.2 GM (new MacBook).
It compiles fine but when I try to install any gem I get the following:
gem install bundler
/Users/me/.rvm/rubies/ruby-1.8.7-p352/lib/ruby/1.8/timeout.rb:60: [BUG] Bus Error
ruby 1.8.7 (2011-06-30 patchlevel 352) [i686-darwin11.1.0]
Abort trap: 6
Update: In the end I hope to have Xcode 4.2 installed, RVM with Ruby 1.8.7, 1.9.x installed and all working properly.
Since I had to parse through several of these answers to get things working with XCode 4.2, I thought I'd put it all together:
- Install Xcode 4.2
- Install the gcc standalone compiler from https://github.com/kennethreitz/osx-gcc-installer (which replaces Xcode)
- Add
export CC=gcc-4.2
to your ~/.bash_profile or equivalent (don't forget to reload it) - Run
rvm implode" then re-install rvm
http://beginrescueend.com/
At this point I was able to rvm install ruby-1.8.7 (and ruby-1.9.2), and actually get my gems to install.
这篇关于错误总线错误红宝石1.8.7的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!