Overview
| Artifact ID: | 9443590682dd08a71e94fe7b1729e1cfbb053c9f81b5f1686c40b56212874fd6 |
|---|---|
| Ticket: | 15d60c0d2e1940f0ede852260e9ebf294f526282
make fails for tk8.6.16 on macOS |
| User & Date: | apnadkarni on 2025-07-30 03:37:49 |
Changes
- icomment:
I changed the title to "fails to build on macos", not unix to be accurate. Anyways, the fact that tclsh shell runs without error messages implies the Tcl build and install was fine and something is wrong with the Tk build. Looking at the logs, the build environment or configuration seems strange. For example, - While you are building 8.6.16, your original ticket logging the Tk make install shows the message *using Tk source directory tk9.0.2*. Why is it using the tk9.0.2 directory? - On the other hand, the make install log you attached shows the error */usr/local/lib/tcl8.6/init.tcl: version conflict for package "Tcl": have 8.6.6, need exactly 8.6.16*. Where is this 8.6.6 coming from? I suspect previous installs or system installed libraries are somehow interfering with the paths. One thing I can suggest you try is to add the --with-tclinclude flag to the Tk configure: ``` ./configure --prefix=/usr/local/tcl8.6.16 --with-tcl=/usr/local/tcl8.6.16/lib --with-tclinclude=/usr/local/tcl8.6.16/include --enable-framework --enable-aqua ``` That comes from my experience with [mingw builds](https://core.tcl-lang.org/tcl/tktview/6f22c7a1fc). Otherwise, I'm afraid you have to wait for someone knowledgeable about macOS builds and how it resolves libraries and include paths to speak up.
- login: "apnadkarni"
- mimetype: "text/x-markdown"
- title changed to: "make fails for tk8.6.16 on macOS"