BUG Bus Error ruby 1.8.7

前端 未结 7 791
自闭症患者
自闭症患者 2020-12-08 01:16

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 t

7条回答
  •  长情又很酷
    2020-12-08 02:10

    I fix that by

    1. installing Xcode 4.2.x,
    2. adding export CC=gcc into ~/.bash_profile,
    3. Reloading environment (source ~/.bash_profile),
    4. executing rvm install 1.9.3,
    5. executing rvm ruby-1.9.3-rc1,
    6. executing gem update --system and finally
    7. executing gem install bundler

    The problem is with Xcode 4.2.x version. If you run rvm get head you will see this message "DO NOT use Xcode Version 4.2.x. It currently fails to build several rubies and gems...".

    I don't have solution for ruby v1.8.7.

    I hope it helps.

提交回复
热议问题