Lion吃了我的RVM,现在我无法安装Ruby

cbm*_*eks 13 ruby ruby-on-rails rvm osx-lion

我最近升级到Lion,一切都很好.甚至重启机器几次.然后在周末,Rails走了!我的所有宝石都没了.我发誓我不知道发生了什么.它工作得很好.

仔细观察后,RVM本身就消失了.

所以,我重新安装RVM并尝试安装Ruby 1.9.2并得到此错误日志:

[2011-08-08 14:30:41]  ./configure --prefix="/Users/cbmeeks/.rvm/usr"  
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... config/install-sh -c -d
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... no
checking for gcc... /usr/bin/gcc-4.2
checking whether the C compiler works... no
configure: error: in `/Users/cbmeeks/.rvm/src/yaml-0.1.4':
configure: error: C compiler cannot create executables
See `config.log' for more details
Run Code Online (Sandbox Code Playgroud)

看来gcc已经消失了?我不想只是开始随机重新安装所有内容,因为之前一切正常.

有任何想法吗?

谢谢.

小智 8

安装Lion后,必须重新安装Xcode/Developer工具.它可以从应用商店购买.

http://itunes.apple.com/us/app/id448457090?mt=12


Eze*_*lin 6

如果您不想进行完整的XCode安装,可能需要查看此项目:https://github.com/kennethreitz/osx-gcc-installer