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

· Registered
Joined
·
810 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
 

· Premium Member
Joined
·
7,057 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,575 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,575 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
This is an older thread, you may not receive a response, and could be reviving an old thread. Please consider creating a new thread.
Top