Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Mac OS X > installing only gcc from xcode

installing only gcc from xcode
Thread Tools
Forum Regular
Join Date: Oct 2003
Location: San Francisco Bay Area
Status: Offline
Reply With Quote
Sep 24, 2005, 04:53 PM
 
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
Reply With Quote
Sep 24, 2005, 05:57 PM
 
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.
     
juusan  (op)
Forum Regular
Join Date: Oct 2003
Location: San Francisco Bay Area
Status: Offline
Reply With Quote
Sep 24, 2005, 06:24 PM
 
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
Reply With Quote
Sep 24, 2005, 06:39 PM
 
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.

Ticking sound coming from a .pkg package? Don't let the .bom go off! Inspect it first with Pacifist. Macworld - five mice!
     
P
Moderator
Join Date: Apr 2000
Location: Gothenburg, Sweden
Status: Offline
Reply With Quote
Sep 25, 2005, 06:56 AM
 
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.
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 03:12 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2