Error: Unable to determine location of a macOS SDK.

Ken Cunningham ken.cunningham.webuse at gmail.com
Sun Oct 7 00:04:52 UTC 2018


Brand new installation of High Sierra, installed Xcode from App Store, opened it, installed MacPorts from installer.

Then:

$ sudo port selfupdate
--->  Updating MacPorts base sources using rsync
MacPorts base version 2.5.4 installed,
MacPorts base version 2.5.4 downloaded.
--->  Updating the ports tree
--->  MacPorts base is already the latest version

The ports tree has been updated. To upgrade your installed ports, you should run
  port upgrade outdated

$ port -v installed
No ports are installed.

$ sudo port -v -N install qalculate-gtk
--->  Computing dependencies for qalculate-gtk.....................................Error: Unable to determine location of a macOS SDK.
Error: Unable to execute port: can't read "configure.sdkroot": Unable to determine location of a macOS SDK.




This is happening because the command line tools aren’t installed, and there is no installed SDK that is named MacOSX10.13.sdk:

$ pwd
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs
$ ls
MacOSX.sdk	MacOSX10.14.sdk

and indeed, making a fake link:

$ sudo ln -s MacOSX.sdk MacOSX10.13.sdk

and away the build goes.


Ken

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macports.org/pipermail/macports-dev/attachments/20181006/844ad516/attachment.html>


More information about the macports-dev mailing list