Go Back   MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Reply
 
Thread Tools Search this Thread Display Modes
Old Nov 7, 2008, 06:53 PM   #1
akindo
macrumors newbie
 
Join Date: Nov 2008
Installing GCC Without All of Xcode

Hi fellow programmers on OS X. I just got a new Leopard install up and running on my 76GB HD. I need gcc and gdb plus all libraries for C and C++ programming, but am not keen on installing all of Xcode because, a. it takes up about 2.5GB on my small HD, b. I will use Emacs and gdb instead of the Xcode IDE.

I read here http://forums.macrumors.com/showthread.php?t=374259 about a guy who modified the Xcode installer to just install gcc. Does anyone know how I can do a similar modification to get gcc and gdb plus the libraries? Is it simply a matter of deleting packages from the diskimage? And if so, which package contains gdb and the libraries?

Thanks a lot for any help.
akindo is offline   0 Reply With Quote
Old Nov 7, 2008, 07:17 PM   #2
bdoyle
macrumors newbie
 
Join Date: Nov 2008
I was able to install gcc 4.2 (no xcode) from the 'dmg' found on the "apple developers connection" "developers tools" download page. I could not find 'ddd' so I downloaded the source code and built it myself. No problem. Works good.

Here is a link to the software:
http://adcdownload.apple.com/Develop...42preview1.dmg
bdoyle is offline   0 Reply With Quote
Old Nov 7, 2008, 10:13 PM   #3
NeoMayhem
macrumors 6502a
 
Join Date: Aug 2003
Do a custom install and uncheck everything but the compilers. This was not an option before Leopard, and I was very excited to see it added.
NeoMayhem is offline   0 Reply With Quote
Old Nov 8, 2008, 08:22 AM   #4
akindo
Thread Starter
macrumors newbie
 
Join Date: Nov 2008
Thanks for the help guys.

bdoyle: Thanks for that, had a look at the Developer Tools download page on Apple dev. I found gcc, also thanks to your link, but not gdb. I have previously tried to compile the gdb sources on OS X without success and was told on the gdb IRC channel that those sources are not for OS X/powerpc. Is there any other way to get gdb?

NeoMayhem: I had a second look at the install for Xcode 3.1.1 and cannot find a custom install option. There is a page where you can uncheck some options, but it is not possible to uncheck the core Xcode tools, which take up 2GB.
akindo is offline   0 Reply With Quote
Old Nov 8, 2008, 03:08 PM   #5
NeoMayhem
macrumors 6502a
 
Join Date: Aug 2003
Did you download xcode or are you installing it off the DVD that came with your mac?

I am positive I was able to just install the compilers. I was surprised to see it an option, because it never was in the past.

What I used to do was just install the whole thing, and then delete the /Developer Folder. GCC and everything else is installed in system folders, so this just removes xcode and the documentation.
NeoMayhem is offline   0 Reply With Quote
Old Nov 10, 2008, 09:40 AM   #6
akindo
Thread Starter
macrumors newbie
 
Join Date: Nov 2008
I installed it from the downloaded dmg, as this is the newest version.

Good tip regarding installing everything and then removing the /Developer dir, think I will do that then.
akindo is offline   0 Reply With Quote
Old Mar 9, 2009, 09:27 AM   #7
hunter3740
macrumors member
 
Join Date: Aug 2008
Location: Pittsburgh, PA
Send a message via AIM to hunter3740
install just gcc (not whole xcode)

Quote:
Originally Posted by akindo View Post
I installed it from the downloaded dmg, as this is the newest version.

Good tip regarding installing everything and then removing the /Developer dir, think I will do that then.

Uninstall xcode and remove the /Developer directory in one command (i.e. don't just delete the folder; and note, this is referenced in the aboutxcodetools.pdf inside the xcode312.dmg you downloaded from connect.apple.com):
/Developer/Library/uninstall-devtools --mode=all

You can then just install gcc from that same xcodetools.dmg, inside the Packages folder (i.e. don't use the main XcodeTools.mpkg, but Packages/gcc4.2.pkg).
hunter3740 is offline   0 Reply With Quote

Reply
MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
thread Thread Starter Forum Replies Last Post
issue while installing xcode commandline geek2b Mac Basics and Help 1 May 23, 2014 12:51 PM
Installing XCode radubolovan Mac Programming 4 Mar 18, 2013 04:04 PM
So it seems that 10.9 will come with XCode 5.0 and get rid of llvm-gcc altogether. iBug2 OS X 1 Jan 29, 2013 12:39 PM
Help Installing Xcode loon3y iPhone/iPad Programming 2 Sep 25, 2012 01:23 AM
no gcc after installing xcode! help! urgent! miissts Mac Programming 4 Aug 28, 2012 10:00 AM

Forum Jump

All times are GMT -5. The time now is 08:43 AM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013, MacRumors.com, LLC