Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to remove XCode 4.2 and install 4.1 to develop Ruby / Rails on OSX Lion?

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?

like image 363
tmaximini Avatar asked Nov 28 '22 17:11

tmaximini


2 Answers

Uninstall 4.2 with

/Library/Developer/4.2/uninstall-devtools --mode=all

Then XCode 4.1 Download is here

like image 81
dB. Avatar answered Dec 07 '22 00:12

dB.


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

like image 37
hzizh Avatar answered Dec 07 '22 00:12

hzizh