BUG Bus Error ruby 1.8.7

前端 未结 7 769
自闭症患者
自闭症患者 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:09

    You can download find stand alone GCC installer instructions here: https://github.com/kennethreitz/osx-gcc-installer

    This gives you a non llvm based gcc installation without having to mess around with Xcode.

    You can then use the command

     export CC=/usr/bin/gcc-4.2 
    

    This allows you to have the latest X Code for OSX purposes and still have a happy gcc version for ruby.

提交回复
热议问题