 |
 |
installing only gcc from xcode
|
 |
|
 |
|
Forum Regular
Join Date: Oct 2003
Location: San Francisco Bay Area
Status:
Offline
|
|
I want to install a c++ compiler on my ibook running tiger. I've downloaded xcode, but space is at a premium on my drive these days, so I don't want to install the entire package. is there a way to install just the c++ compiler and not all of xcode?
|
|
-> 20" iMac Core Duo, 1GB RAM, lame superdrive that burns at 2x
-> MacBook Pro 2GHz Core Duo, 2GB RAM
-> MacBook 2.16GHz Core Duo, 2GB RAM
|
| |
|
|
|
 |
|
 |
|
Dedicated MacNNer
Join Date: Nov 2003
Location: Oslo, Norway
Status:
Offline
|
|
I have not tested this, but it might work.
Mount your Xcode disk image and open its Packages/ folder. Execute and install gcc4.0.pkg and DeveloperTools.pkg.
The installation sizes are:
GCC 4.0.0 -> 168MB
Developer Tools -> 171MB
Extract the .pkg`s with unpkg if you want to take a further look at the files its installing.
|
|
|
| |
|
|
|
 |
|
 |
|
Forum Regular
Join Date: Oct 2003
Location: San Francisco Bay Area
Status:
Offline
|
|
didn't work.  at least, running gcc -v doesn't bring up anything.
|
|
-> 20" iMac Core Duo, 1GB RAM, lame superdrive that burns at 2x
-> MacBook Pro 2GHz Core Duo, 2GB RAM
-> MacBook 2.16GHz Core Duo, 2GB RAM
|
| |
|
|
|
 |
|
 |
|
Posting Junkie
Join Date: Dec 2000
Status:
Offline
|
|
You can use Pacifist (link in my signature) to examine the contents of each package and pull out the parts you want. However, you'll probably need to get a bunch of the support files before gcc will work properly. I'm not sure what all will be required, but you could experiment a bit if you want.
|
|
|
| |
|
|
|
 |
|
 |
|
Moderator 
Join Date: Apr 2000
Location: Gothenburg, Sweden
Status:
Offline
|
|
You'd need more than just gcc, you'd need the linker at least and most likely make and autoconf etc. Not so easy to pick out what you want. I suppose you could install all of Xcode and then delete the folder Developer from the root of the drive, but I haven't tried that.
gcc is also included in Darwin, if you want to pickt it out from there - or you could compile it yourself on a different machine (do "make" but not "make install") and install it where you want it. The source to the Apple versions of the developer tools is here:
http://developer.apple.com/darwin/projects/compiler/
You can also find the "raw" GCC 4, without the backwards compability extensions Apple includes, att http://gcc.gnu.org/. You'd still need a different Mac to compile it on.
|
|
|
| |
|
|
|
 |
 |
|
 |
|
|
|
|
|

|
|
 |
Forum Rules
|
 |
 |
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
|
HTML code is Off
|
|
|
|
|
|
 |
 |
 |
 |
|
 |
|