Why can't I install Rails on Lion using RVM?

后端 未结 14 1389
孤独总比滥情好
孤独总比滥情好 2020-11-29 16:40

I\'m running into issues trying to install Rails on OS X Lion using RVM.

So far, I have done the following:

  1. Installed Mac OS X Lion Version 10.7 (Build
14条回答
  •  情书的邮戳
    2020-11-29 17:07

    Fixed it!

    The answer was actually on one of the links I posted above. Before installing a version of ruby (rvm install 1.8.7) I needed to run "export CC=/usr/bin/gcc-4.2". With that in place, everything ran smoothly.

    If you don't want to have CC permanently exported, you can do CC=/usr/bin/gcc-4.2 rvm install 1.8.7

    If you have already installed ruby 1.8.7. Just do CC=/usr/bin/gcc-4.2 rvm reinstall 1.8.7

提交回复
热议问题