BUG Bus Error ruby 1.8.7

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

    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.

    0 讨论(0)
提交回复
热议问题