我使用 RVM(ruby 版本管理器)开发 Rails 应用程序。
我必须下载 XCode,在应用商店中我只得到了 4.2 版本。
现在 RVM 说它无法使用此 XCode 正确构建 rubies,因此我遵循了本教程:
http://www.frederico-araujo.com/2011/07/30/installing-rails-on-os-x-lion-with-homebrew-rvm-and-mysql/
我从在控制台中键入 rvm requests
时显示的链接下载了 XCode 版本。 (https://developer.apple.com/downloads/download.action?path=Developer_Tools/xcode_4.1_for_lion/xcode_4.1_for_lion.dmg)
现在,有一个带有 installXCodeLion 包的 3.09 GB .dmg,并且安装成功,但之后我的系统上没有 XCode 或任何东西。 (我也停止了 iTunesHelper 进程...)
有人知道如何安装 XCode 4.1 吗?或者从哪里可以从苹果官方获得它?
或者有人在 Lion 上成功使用 RVM 和 ruby 1.9.2 w/ Rail 3.1 ?
I develop Rails apps using RVM (ruby version manager).
I had to download XCode, in the app store I got only version 4.2.
Now RVM says that it can't build rubies properly with this XCode, so I followed this tutorial:
http://www.frederico-araujo.com/2011/07/30/installing-rails-on-os-x-lion-with-homebrew-rvm-and-mysql/
I downloaded the XCode version from the link that is shown when you type rvm requirements
in the console. (https://developer.apple.com/downloads/download.action?path=Developer_Tools/xcode_4.1_for_lion/xcode_4.1_for_lion.dmg)
Now, there is a 3.09 GB .dmg with an installXCodeLion package, and it installs successfully, but after there is no XCode or whatsoever on my system. (I stopped also the iTunesHelper process... )
Anybody knows how to install XCode 4.1 ? Or where to officially get it from Apple?
Or anybody uses RVM and ruby 1.9.2 w/ Rail 3.1 successfully on Lion?
发布评论
评论(8)
卸载 4.2
使用
/Library/Developer/4.2/uninstall-devtools --mode=all
然后 XCode 4.1 下载为 此处
Uninstall 4.2 with
/Library/Developer/4.2/uninstall-devtools --mode=all
Then XCode 4.1 Download is here
多谢
首先它很有帮助
:
卸载 4.2
使用/Library/Developer/4.2/uninstall-devtools --mode=all
其次:
下载 xcode4.1 安装的 dmg 文件
运行 dmg 文件来安装 Xcode
确保您的计算机中没有“安装 Xcode”文件 运行 dmg 文件后, “/application”目录
中将在“application”目录中创建一个新的“install Xcode”文件。
最后:
运行 install Xcode 完成安装
thanks a lot
it is helpful
first:
Uninstall 4.2 with
/Library/Developer/4.2/uninstall-devtools --mode=all
secondly:
download xcode4.1 installed dmg file
run dmg file to install Xcode
be sure there is no "install Xcode" file in your "/application" directory
after running dmg file , one new "install Xcode" file will be created in "application" directory.
finally:
run install Xcode to finish installation
您的应用程序文件夹中没有“安装 Xcode”应用程序吗?从 xcode_4.1_for_lion.dmg 执行包后,我必须运行它才能完成安装
Dont you have an "Install Xcode" application on your Applications folder ? I had to run it to complete the installation after executing the package from the xcode_4.1_for_lion.dmg
我将为您省去任何额外的麻烦:您的 rvm 安装已过时。
重新安装 Xcode 4.2,获取最新的 rvm,然后轻松返回工作。
I'll save you any additional trouble: Your rvm installation is out of date.
Reinstall Xcode 4.2, grab the latest rvm, and get back to your work with no fuss and no hoop-jumping.
要检索 Xcode 4.1,您必须登录 Mac 开发中心 并转到到其他下载。您将找到所有 Xcode 版本的所有安装磁盘映像。
To retrieve Xcode 4.1, you have to log in to the Mac Dev Center and go to Additional Downloads. You will find all the installation disk images for all the Xcode versions.
Guillaume Petit 是正确的 - 首先从应用程序文件夹中删除安装 Xcode(App Store 中的 4.2 版本)。
再次运行 xcode_4.1_for_lion.dmg,它将在应用程序中创建一个新的 Install Xcode(这是 4.1 版本)。运行它,开发人员工具将按预期安装。
Guillaume Petit is correct - delete Install Xcode from the APplications folder first (the 4.2 version from the App Store).
Run the xcode_4.1_for_lion.dmg again and it will create a new Install Xcode in Applications (which is the 4.1 version). Run that and Developer Tools will be installed as expected.
我不确定是否有人知道,但我在另一篇文章中读到,您必须使用 clang 选项来安装 rubies。例子:
Im not sure if anyone is aware, but I read in another post that you have to use clang option to install rubies. example:
开发人员工具安装在系统磁盘上的“Developer”文件夹中。
(不在“应用程序”文件夹中!)
旧的 XCode 版本确实可以在 Mac 开发中心下载网站上找到。
The developer tools install in the "Developer" folder on your system disk.
(not in the "Applications" folder!)
The old XCode releases can indeed be found on the Mac Dev Center download site.