使用 RVM 的 Mac OS X Lion Xcode 问题 [英] Mac OS X Lion Xcode problems using RVM

查看:38
本文介绍了使用 RVM 的 Mac OS X Lion Xcode 问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我让 Xcode 4.1 preview 5 工作正常,但决定通过 App Store 升级到最终的 xcode 4.1.我先卸载了 Xcode...

I had Xcode 4.1 preview 5 working fine but decided to upgrade to the final xcode 4.1 thru the App store. I uninstalled Xcode first...

sudo /Developer/Library/uninstall-devtools –mode=all

然后通过应用商店安装 Xcode 并重新启动.

Then installed Xcode thru the app store and rebooted.

我也完全删除了 RVM,但是...现在每当我尝试安装一个 Ruby 版本时,它都会失败.在错误文件中,我得到了这个:

I also removed RVM completely but... now whenever I try and install a version of Ruby it fails. In the error file i get this:

[2011-07-27 18:29:25]  ./configure --prefix="/Users/holden/.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/holden/.rvm/src/yaml-0.1.4':
configure: error: C compiler cannot create executables
See `config.log' for more details

/usr/bin 目录中没有 gcc-4.2 或任何其他 gcc.

There is no gcc-4.2 or any other gcc in the /usr/bin directory.

Xcode 怎么了?

推荐答案

显然即使在从 Appstore 下载并安装" XCode 之后,尽管下载后似乎安装它的过程很长,并且已安装"字样最终变成显示在商店旁边.您仍然必须在您的应用程序文件夹中再次手动安装它才能工作.

Apparently even after downloading and "installing" XCode from the Appstore and despite the long process after downloading where it appears to install it and the words "Installed" eventually become displayed next to it in the store. You must still manually install it again within your applications folder before it will work.

奇怪.

这篇关于使用 RVM 的 Mac OS X Lion Xcode 问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆