gcc on macports

Ryan Schmidt ryandesign at macports.org
Fri Apr 30 05:23:21 PDT 2010

On Apr 30, 2010, at 06:45, Alan Barros de Oliveira wrote:

> I have gcc, gcc-4.0, and gcc-4.2 (yes, with dashes). Thus it seems they are not macported gcc's, right?
> I simple don't remember if I have installed  C compilers other than macport ones in the past... it seems I did!

In /usr/bin, a standard install of Xcode will install the compilers gcc-4.0 and gcc-4.2, and a symlink gcc. On Leopard, that symlink will point to gcc-4.0, while on Snow Leopard, it will point to gcc-4.2.

MacPorts doesn't install anything in /usr/bin. If you install a gcc port with MacPorts, you'll get additional compilers in the MacPorts prefix, usually /opt/local.

More information about the macports-users mailing list