Opened 6 years ago

Closed 6 years ago

Last modified 6 years ago

#57633 closed defect (invalid)

I tried to upgrade macports. but this error showed up

Reported by: vvn29 Owned by:
Priority: Normal Milestone:
Component: ports Version: 2.5.4
Keywords: Cc:
Port:

Description (last modified by mf2k (Frank Schima))

I tried to upgrade macports. but this error showed up

VIVIANs-MacBook-Pro:~ vivianwilfred$ sudo port upgrade outdated
Password:
Error: Unable to determine location of a macOS SDK.
Error: Unable to open port: can't read "configure.sdkroot": Unable to determine location of a macOS SDK.

What should i do to correct this?

Change History (5)

comment:1 Changed 6 years ago by jmroot (Joshua Root)

Resolution: invalid
Status: newclosed

Make sure you have both Xcode and the Command Line Tools installed, as per the MacPorts installation instructions.

comment:2 Changed 6 years ago by mf2k (Frank Schima)

Keywords: can't read "configure.sdkroot" removed
Priority: HighNormal

comment:3 Changed 6 years ago by mf2k (Frank Schima)

Description: modified (diff)

In the future, please use WikiFormatting.

comment:4 in reply to:  2 Changed 6 years ago by vvn29

Replying to mf2k:

I have both xcode and command line tools.

Last edited 6 years ago by vvn29 (previous) (diff)

comment:5 Changed 6 years ago by jmroot (Joshua Root)

Either /usr/include (provided by the Command Line Tools) is missing, or macosx_sdk_version is not set to the current OS version, or you're on 10.14 and the corresponding SDK is missing from your Xcode installation.

https://github.com/macports/macports-base/blob/v2.5.4/src/port1.0/portconfigure.tcl#L414

Last edited 6 years ago by jmroot (Joshua Root) (previous) (diff)
Note: See TracTickets for help on using tickets.