GCC Where is it?

Hi,

New to Mac (a couple of months). I figured gcc would be there but it is not. I found out that I need to install Xcode tools. Did that. But where is gcc? Where is it located? It is not in any of my $PATH.

Macbook 10.5, Mac OS X (10.5)

Posted on Mar 9, 2008 12:46 PM

Reply
15 replies

Mar 9, 2008 5:35 PM in response to Bill Scott

Thanks to everyone for your quick responses.

FYI: I installed Xcode 2.5 because I was having a hard time mounting the Xcode 3.0 image (Invalid checksum). I didn't have time to try to find out why, I couldn't find anything out about it by Google. I just figured I would try 2.5 to see if I could get it going, and I did. I have to get something done by Tuesday and was just in a big rush. Turns out it was all for nothing because I still couldn't get PDL to install (problem with 'make') through cpan. I just decided to work on the linux box and get all of this figured out when I have more time.

Thanks again for all of your help. I didn't realize that I would get so many responses so quickly. This message board is a great resource for a new Mac user like myself.

Mar 9, 2008 4:51 PM in response to Gnarlodious

No, it was installed right. I did a little reading in the manual. The manual says that for 10.4 it also installs in /usr/bin/. It doesn't say that it does this for 10.5, which is what I am using. It says that it installs it in <Xcode directory>/usr/bin.

I guess the main difference is that with 10.5 you can move the files to another directory (I guess you couldn't do that with Tiger??).

I just wish they would install it all in /usr/bin/ instead of making me look around for it.

Mar 12, 2008 1:57 PM in response to Bill Scott

because I'm having the same problem. I just bought a Macbook Air with OS 10.5.2. I installed Xcode 3.0 from the installation DVD, and it definitely did NOT install gcc in /usr/bin. It went into /Developer/usr/bin. I can't copy it over or make a symbolic link. I've changed my path to find it, but many make files expect it in /usr/bin.

How do I get it in the correct directory????

For what it's worth, I've been installing Xcode tools onto macs since the first release of OS X and never had any problems until now.

May 2, 2008 5:39 PM in response to jdundas

Hi, I'm chiming in on this thread because it looks like i'm running into a similar problem. I have installed xcode 3.0 that came with Panther. it's in /developer on my drive. I'm trying to install OpenVPN on my macbook.

first try with ./configure couldn't find gcc. i added /developer/usr/bin to my $PATH and that seemed to work, but now i get the "failed sanity check" which other forums tell me is because I don't have c++ installed. any idea what gives?

thanks in advance. John

May 23, 2008 10:37 AM in response to jdundas

I'm very new to terminal/Unix... Would someone be able to teach me how to set the location of gcc in the $PATH? I have hunted around the internet forever trying to get an example and it seems I'm having the same problem as this post was originally reporting... In most of the forums I've searched , most people suggest that gcc/g++/gmake aren't installed. I have installed X Code 3.0 and can find gcc 4.0 from the finder. In addition:

$ gcc -version
$-bash: gcc: command not found

BUT

$ /Developer/usr/bin/gcc -version
$ i686-apple-darwin9-gcc-4.0.1: no input files

I have gotten far enough to think that I can add to my path through the bashrc file. Is this correct? Forgive my ignorance... everyone has to learn someway, right? I've googled for 'sample bashrc files' to see if I could pick out any path settings but mostly have pulled up people's mile long customized files which were difficult to sort through for a newbie.

Thanks,
-John

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

GCC Where is it?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.