Canadian Mac Forums at ehMac banner
1 - 7 of 7 Posts

·
Premium Member
Joined
·
10,287 Posts
Discussion Starter · #1 ·
OS X includes this I believe. Is it installed anywhere and if so, how do you access it?
 

·
Registered
Joined
·
809 Posts
I can't remember if I got it off the Developer Tools CD, but in any case its in /usr/bin which can only be accessed from the shell (correct me if I'm wrong). I got an update from developer.apple.com

(skiddie)fork:~> gcc --version
gcc (GCC) 3.1 20020420 (prerelease)

(skiddie)fork:~> which gcc
/usr/bin/gcc
 

·
ehMac KungFu Master
Joined
·
5,768 Posts
You need to have the DevTools installed for gcc.

If you have Jaguar its included on a third CD. In Panther it will be on a CD as well.
 

·
Premium Member
Joined
·
7,069 Posts
ehMax - if you are compiling open source software, running gcc won't help you much as most of those files have a install file, which you run make on. eg. make (Name of Install file), there is another step before it but I'm sorry I can't remember as I've only compiled software 3 times, and just use Fink instead.
 

·
Premium Member
Joined
·
1,579 Posts
Yeah, gcc 2.95 is not there. gcc 3.1 is, though when you install the developer tools (you can download them by signing up for a free ADC account). Do you really need the 2.95 version for something? (some things really do require this version)
 

·
Premium Member
Joined
·
1,579 Posts
I believe make is included as well, as is automake. The usual install process for things is
./configure
make
make install
Fink is easier though, and keeps things separate, and has Mac-specific patches transparent to you, and it's easier to uninstall things with Fink.
 

·
Registered
Joined
·
2,198 Posts
If you have the developer tools installed, you can use the <code>gcc_select</code> command to switch between different versions of gcc:

<code>
[email protected]:~$ sudo gcc_select 2
Default compiler has been set to:
Apple Computer, Inc. version gcc-938, based on gcc version 2.95.2 19991024 (release)
[email protected]:~$ gcc --version
2.95.2
[email protected]:~$ sudo gcc_select 3
Default compiler has been set to:
Apple Computer, Inc. GCC version 1256, based on gcc version 3.1 20021003 (prerelease)
[email protected]:~$ gcc --version
gcc (GCC) 3.1 20021003 (prerelease)
Copyright (C) 2002 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

[email protected]:~$ sudo gcc_select 3.3
Default compiler has been set to:
gcc version 3.3 20030304 (Apple Computer, Inc. build 1495)
[email protected]:~$ gcc --version
gcc (GCC) 3.3 20030304 (Apple Computer, Inc. build 1495)
Copyright (C) 2002 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
</code>
 
1 - 7 of 7 Posts
Top