问题
After I upgrade to OS X Mavericks, all the installed ports become outdated. I can't use my gcc any more, please help.
The following installed ports are outdated:
bzip2 1.0.6_0 < 1.0.6_0 (platform darwin 12 != darwin 13)
cctools 839_2 < 839_2 (platform darwin 12 != darwin 13)
cctools-headers 839_0 < 839_0 (platform darwin 12 != darwin 13)
cloog 0.18.0_0 < 0.18.0_0 (platform darwin 12 != darwin 13)
curl 7.33.0_0 < 7.33.0_0 (platform darwin 12 != darwin 13)
curl-ca-bundle 7.33.0_0 < 7.33.0_0 (platform darwin 12 != darwin 13)
cyrus-sasl2 2.1.25_4 < 2.1.25_4 (platform darwin 12 != darwin 13)
db46 4.6.21_8 < 4.6.21_8 (platform darwin 12 != darwin 13)
...
...
回答1:
The MacPorts crew expect to have a binary installer for Mavericks in the next few days. Updates won't work because the location of the Tcl framework has changed, breaking common port commands. However, just because a port is outdated doesn't mean it can't be used.
If you can't wait, there are instructions here on how to build from source, once you've upgraded Xcode, command line utilities, etc. It reflects the new location of the Tcl framework.
回答2:
That's not a bug, but intended behavior. See https://trac.macports.org/wiki/Migration for a guide on what to do after an OS upgrade. Note that you'll currently have to build MacPorts from source on Mavericks (but a binary installer will be available soon).
Most of your installed ports should continue to work, though, so your GCC should not be broken by this unless you start upgrading.
回答3:
If you've just upgraded your OS don't forget to:
- Update Xcode and
- Open it to agree to the licensing terms.
来源:https://stackoverflow.com/questions/19534032/mavericks-macports-installed-outdated