错误总线错误红宝石1.8.7 [英] BUG Bus Error ruby 1.8.7

查看:91
本文介绍了错误总线错误红宝石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,所以我认为我会把它放在一起:


  1. 安装Xcode 4.2
  2. https://github.com/kennethreitz/osx-gcc-installer (代替Xcode)

  3. 添加 export CC = gcc-4.2 到您的〜/ .bash_profile或同等版本(don忘了重新加载它)

  4. 运行 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:

  1. Install Xcode 4.2
  2. Install the gcc standalone compiler from https://github.com/kennethreitz/osx-gcc-installer (which replaces Xcode)
  3. Add export CC=gcc-4.2 to your ~/.bash_profile or equivalent (don't forget to reload it)
  4. 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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆