Mountain Lion Upgrade: Developer Tools
After upgrading to Mountain Lion, the following all seemed to be broken:
- MacPorts… Issuing a selfupdate command produced:
checking whether the C compiler works... no configure: error: in '/opt/local/var/macports/sources/rsync.macports.org/release/tarballs/base': configure: error: C compiler cannot create executables
- make…
command not found
- cmake…
error: There is no SDK with the name or path '/Developer/SDKs/MacOSX10.8.sdk'
The solution to these problems were fairly simple:
- MacPorts – reinstall with the Mountain Lion installer
- make – install Xcode command line tools per this StackOverflow answer
- cmake – upgrade via “sudo port upgrade cmake”
A few minutes later, I was back in business compiling the Pharo Smalltalk VM!
Instead of the first step you can always just run sudo port selfupdate. That will get you the latest version of MacPorts.
@Clemens Thanks for the feedback! I was getting an error with selfupdate… so re-installation seemed to be the easiest thing