Opened 5 years ago

Closed 5 years ago

Last modified 5 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 5 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 5 years ago by mf2k (Frank Schima)

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

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

Description: modified (diff)

In the future, please use WikiFormatting.

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

Replying to mf2k:

I have both xcode and command line tools.

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

comment:5 Changed 5 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.

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

Version 0, edited 5 years ago by jmroot (Joshua Root) (next)
Note: See TracTickets for help on using tickets.