Recently I received my new MacBook Air 13″ (sadly my old MacBook Aluminium is almost dead) and among all the problems I have with Lion probably the one I have with MacPorts is the most frustrating!
Someone can object with “why don’t you use Homebrew? It’s much better than Port because BLAH BLAH BLAH BLAH BLAH”, but I don’t care: I want Port working, not something else!
So after some searches around I found something that “magically” fixed everything.
The problem seems to be related to a missing setting after the installation of the Xcode. In particular the installation of the Xcode from the App Store (besides not installing by default the “Command line tools”) doesn’t set the “xcode_folder_path”.
To check if everything works it’s enough to run:
This gave me back:
Error: /usr/bin/xcode-select returned unexpected error.
Well, now the solution is clear! It’s enough to set the xcode_folder_path!
So I run:
where
is the path of the Xcode application installed through the App Store.
Now if you run again:
you will have
Xcode 4.3.2
Build version 4E2002
All the Ports now should work! Well…. for me now they work!