[MacPorts] #64321: MacPorts 2.7.1: build from source fails MacOs Big Sur 11.6.2 with "configure: error: tcl.h not found."
MacPorts
noreply at macports.org
Thu Dec 30 16:20:57 UTC 2021
#64321: MacPorts 2.7.1: build from source fails MacOs Big Sur 11.6.2 with
"configure: error: tcl.h not found."
--------------------+--------------------
Reporter: purist | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: base | Version: 2.7.1
Keywords: | Port:
--------------------+--------------------
I'm building a fresh install of MacPorts on a fresh install of Big Sur
11.6.2 with a fresh install of XCode 13.2.1
Running "./configure" I get this:
{{{checking for Tcl public headers... configure: error: tcl.h not found.
Please specify its location with --with-tclinclude}}}
Yes I ran Xcode, and built something with Xcode, and also ran all these
commands:
{{{
$ sudo xcode-select --install
$ sudo softwareupdate --install -a
$ sudo xcodebuild -license
$ sudo xcode-select --reset
}}}
looks like Xcode command line tools installed Tcl stuff here:
{{{
% sudo find /Library -name tcl.h
/Library/Developer/CommandLineTools/SDKs/MacOSX11.1.sdk/usr/include/tcl.h
/Library/Developer/CommandLineTools/SDKs/MacOSX11.1.sdk/System/Library/Frameworks/Tcl.framework/Versions/8.5/Headers/tcl.h
/Library/Developer/CommandLineTools/SDKs/MacOSX11.3.sdk/usr/include/tcl.h
/Library/Developer/CommandLineTools/SDKs/MacOSX11.3.sdk/System/Library/Frameworks/Tcl.framework/Versions/8.5/Headers/tcl.h
/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include/tcl.h
/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Tcl.framework/Versions/8.5/Headers/tcl.h
/Library/Developer/CommandLineTools/SDKs/MacOSX12.1.sdk/usr/include/tcl.h
/Library/Developer/CommandLineTools/SDKs/MacOSX12.1.sdk/System/Library/Frameworks/Tcl.framework/Versions/8.5/Headers/tcl.h
% sudo find /Library -name "tclConfig.sh"
/Library/Developer/CommandLineTools/SDKs/MacOSX11.1.sdk/System/Library/Frameworks/Tcl.framework/Versions/8.5/tclConfig.sh
/Library/Developer/CommandLineTools/SDKs/MacOSX11.1.sdk/System/Library/Frameworks/Tcl.framework/tclConfig.sh
/Library/Developer/CommandLineTools/SDKs/MacOSX11.3.sdk/System/Library/Frameworks/Tcl.framework/Versions/8.5/tclConfig.sh
/Library/Developer/CommandLineTools/SDKs/MacOSX11.3.sdk/System/Library/Frameworks/Tcl.framework/tclConfig.sh
/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Tcl.framework/Versions/8.5/tclConfig.sh
/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Tcl.framework/tclConfig.sh
/Library/Developer/CommandLineTools/SDKs/MacOSX12.1.sdk/System/Library/Frameworks/Tcl.framework/Versions/8.5/tclConfig.sh
/Library/Developer/CommandLineTools/SDKs/MacOSX12.1.sdk/System/Library/Frameworks/Tcl.framework/tclConfig.sh
}}}
As per the find results above, Yes I did try these commands:
{{{
$ ./configure --with-
tclinclude=/Library/Developer/CommandLineTools/SDKs/MacOSX11.3.sdk/System/Library/Frameworks/Tcl.framework/Versions/8.5/Headers
$ ./configure --with-
tcl=/Library/Developer/CommandLineTools/SDKs/MacOSX11.3.sdk/System/Library/Frameworks/Tcl.framework/
}}}
And I also tried using both --with-tcl and --with-tclinclude together and
in all cases I get some variant of this message at the top
{{{
configure: WARNING: unrecognized options: --with-tcl, --with-tclinclude
}}}
I'm guessing that the latest MacPorts is not tested with Big Sur 11.6.2
and Xcode 13.2.1. I have reasons for needing to use Big Sur and not the
latest OS Monterey. For the "--with-*" params, I chose the MacOSX11.3.sdk
because that's the closest version to what I'm using but it's moot because
in all cases "./configure" doesn't seem to be passing these params down to
the tcl config script.
Please help, I was hoping to make my own build rather than use the
prebuilt binary .pkg installer
thanks
--
Ticket URL: <https://trac.macports.org/ticket/64321>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list