How to make installed port version the default one?
Ryan Schmidt
ryandesign at macports.org
Sun May 29 16:47:42 PDT 2011
On May 29, 2011, at 06:59, antonio.grilo at inov.pt wrote:
> I'm new to the Mac world and so this is probably the most stupid question that someone has posted here.
Welcome! It's not a stupid question :) and we're happy to help.
> I have installed Xcode3, which comes with gcc42, but I needed gcc43 or higher and so I have installed gcc45 using MacPorts. The port is reported as installed, but whenever I run gcc, the release gcc42 is always invoked, as if gcc45 was not present in the system. So I can I make gcc45 the default version? Thank you for your patience.
This is called the "select" feature in MacPorts.
Use "port help select" to learn more.
Try commands like "port select --list gcc" and "sudo port select --set gcc mp-gcc45".
To undo, use "sudo port select --set gcc none".
The "select" feature is available for some other ports as well, typically those that have multiple versions available (for example python).
More information about the macports-users
mailing list