Artifacts Associated With Ticket 15d60c0d2e1940f0
Ticket change [d45be7ef60] (rid 243447) by f_phan on 2025-07-24 14:14:33:
- assignee initialized to: "nobody"
- closer initialized to: "nobody"
- cmimetype initialized to: "text/plain"
- comment initialized to:
Built and installed tcl8.6.16 on macOS Monterey. Then tried to build tk8.6.16: % tar -xzf tk8.6.16-src.tar.gz % cd tk8.6.16/unix % ./configure --prefix=/usr/local/tcl8.6.16 --with-tcl=/usr/local/tcl8.6.16/lib --enable-framework --enable-aqua % make -j8 % sudo make install . . . application-specific initialization failed: Can't find a usable init.tcl in the following directories: /usr/local/lib/tcl8.6 /usr/local/lib/tcl8.6 /usr/lib/tcl8.6 /usr/local/library /usr/library /usr/tcl8.6.6/library /tcl8.6.6/library This probably means that Tcl wasn't installed properly. using Tk source directory tk9.0.2 verbose messages are off scanning section Tk Applications . scanning section Tk Commands, version 9.0.2 shuffling ttk_widget.n to front of processing queue shuffling options.n to front of processing queue ......................................................................................... scanning section Tk C API, version 9.0.2 ....................................................................................... Assembling index Rescanning 177 pages to build cross links and write out ................................................................................................................................................................................. Done - foundin initialized to: "8.6.16"
- is_private initialized to: "0"
- login: "f_phan"
- priority initialized to: "5 Medium"
- private_contact initialized to: "ab40697187e675bd6910167fe1c1f2f7ad5aa243"
- resolution initialized to: "None"
- severity initialized to: "Severe"
- status initialized to: "Open"
- submitter initialized to: "f_phan"
- subsystem initialized to: "69. Other"
- title initialized to: "make fails for tk8.6.16 on unix"
- type initialized to: "Bug"
Ticket change [9382b3031d] (rid 243469) by apnadkarni on 2025-07-25 18:00:57:
- icomment:
After installing tcl 8.6.16, did you try running the installed tclsh 8.6.16 and see the "Tcl wasn't installed properly error"? Or are you seeing the error only on the Tk build?
- login: "apnadkarni"
- mimetype: "text/plain"
- icomment:
Ticket change [869fe9a1db] (rid 243552) by f_phan on 2025-07-27 00:35:10:
- icomment:
Replying to apnadkarni's 2025-07-25 18:00:57 comment: After installing tcl 8.6.16, I did not try running the installed tclsh 8.6.16. Instead, I did: % cd ../../tk8.6.16/unix % ./configure --prefix=/usr/local/tcl8.6.16 --with-tcl=/usr/local/tcl8.6.16/lib --enable-framework --enable-aqua % make -j8 % sudo make install That was when I got the message "application-specific initialization failed..." (as I described in the Description).
- login: "f_phan"
- mimetype: "text/plain"
- icomment:
Ticket change [a86716edd6] (rid 243561) by apnadkarni on 2025-07-27 05:54:16:
- icomment:
I was hoping you would try running the tclsh you installed and tell us if you are getting that error :-) It would help indicate whether the Tcl install was broken or the Tk build. If possible, attach the config.log and the make install output for both Tcl and Tk.
- login: "apnadkarni"
- mimetype: "text/plain"
- icomment:
Ticket change [0e148d109c] (rid 243582) by f_phan on 2025-07-29 21:07:20:
- icomment:
Please delete my comment where I copied-and-pasted the config.log for Tcl 8.6.16 (https://core.tcl-lang.org/tcl/info/702ec02400464fc7). I will attach the file for it instead.
- login: "f_phan"
- mimetype: "text/plain"
- icomment:
Ticket change [32e99fa54f] (rid 243583) by f_phan on 2025-07-29 21:18:35:
- icomment:
Please delete my comment where I pasted the "sudo make install" output for Tcl 8.6.16 (https://core.tcl-lang.org/tcl/info/f4ace65d92786f34). I will attach a file for that instead.
- login: "f_phan"
- mimetype: "text/plain"
- icomment:
Ticket change [e823335377] (rid 243584) by f_phan on 2025-07-29 21:20:36:
- icomment:
Running /usr/local/tcl8.6.16/bin/tclsh8.6 returned only a shell prompt, no messages. I will attach files for the requested outputs.
- login: "f_phan"
- mimetype: "text/plain"
- icomment:
Add attachment "tcl8.6.16_config.log" [731a34cb53] (rid 243585) by f_phan on 2025-07-29 21:24:18.
Add attachment "tcl8.6.16_config.log" [4d1956c859] (rid 243586) by f_phan on 2025-07-29 21:24:33.
Add attachment "tk8.6.16_config.log" [44cdd3c0be] (rid 243587) by f_phan on 2025-07-29 21:25:51.
Add attachment "tcl8.6.16_make_install_output" [9dde234b66] (rid 243588) by f_phan on 2025-07-29 21:28:05.
Add attachment "tk8.6.16_make_install_output" [9a8227ae7a] (rid 243589) by f_phan on 2025-07-29 21:28:41.
Ticket change [9443590682] (rid 243590) by apnadkarni on 2025-07-30 03:37:49:
- 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"
- icomment:
Ticket change [577daa8b0a] (rid 243605) by f_phan on 2025-07-30 15:24:00:
- icomment:
There were no previous installs of Tcl-Tk on the machine (MacBook Air). I first tried 'make install' of 9.0.2 and encountered this similar problem; see ticket: https://core.tcl-lang.org/tcl/tktview/ba4a2704d0. That's when I decided to try version 8.6.16. Both installs were strangely trying to find their own init.tcl in the directory of the other version. I have the same question as you about where the 8.6.6 is coming from. I will attach a screen shot of the directory structure.
- login: "f_phan"
- mimetype: "text/plain"
- icomment:
Add attachment "tcl-tk dir structure.png" [34e255526d] (rid 243606) by f_phan on 2025-07-30 15:24:42.
Ticket change [1c9431b933] (rid 243765) by apnadkarni on 2025-08-04 15:19:36:
- icomment:
I had asked if you tried including the `--with-tclinclude=path/to/your/8.6.16/include` on the Tk configure? Did you try that. Also those directories are your installs. Possible the system path has a 8.6.6? Anyways, I'm afraid I am out of my depth on the Mac. For all I know, I am sending you down the wrong path. Someone who has actually worked with macos might chip in.
- login: "apnadkarni"
- mimetype: "text/x-markdown"
- icomment:
Ticket change [0f00cec593] (rid 243791) by f_phan on 2025-08-05 04:05:32:
- icomment:
I got an even longer failure message trying your suggestion; I ran: % ./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 After that, I ran: % make -j8 After that, when I ran 'make install': % sudo make install Password: Creating package index /Library/Frameworks/Tk.framework/Versions/8.6/Resources/Scripts/pkgIndex.tcl Installing Tk to /Library/Frameworks/Tk.framework/Versions/8.6/ ... application-specific initialization failed: Can't find a usable init.tcl in the following directories: /usr/local/lib/tcl8.6 /usr/local/lib/tcl8.6 /usr/lib/tcl8.6 /usr/local/library /usr/library /usr/tcl8.6.6/library /tcl8.6.6/library /usr/local/lib/tcl8.6/init.tcl: version conflict for package "Tcl": have 8.6.6, need exactly 8.6.16 version conflict for package "Tcl": have 8.6.6, need exactly 8.6.16 while executing "package require -exact Tcl 8.6.16" (file "/usr/local/lib/tcl8.6/init.tcl" line 21) invoked from within "source /usr/local/lib/tcl8.6/init.tcl" ("uplevel" body line 1) invoked from within "uplevel #0 [list source $tclfile]" /usr/local/lib/tcl8.6/init.tcl: version conflict for package "Tcl": have 8.6.6, need exactly 8.6.16 version conflict for package "Tcl": have 8.6.6, need exactly 8.6.16 while executing "package require -exact Tcl 8.6.16" (file "/usr/local/lib/tcl8.6/init.tcl" line 21) invoked from within "source /usr/local/lib/tcl8.6/init.tcl" ("uplevel" body line 1) invoked from within "uplevel #0 [list source $tclfile]" This probably means that Tcl wasn't installed properly. using Tk source directory tk9.0.2 verbose messages are off scanning section Tk Applications . scanning section Tk Commands, version 9.0.2 shuffling ttk_widget.n to front of processing queue shuffling options.n to front of processing queue ......................................................................................... scanning section Tk C API, version 9.0.2 ....................................................................................... Assembling index Rescanning 177 pages to build cross links and write out ................................................................................................................................................................................. Done - login: "f_phan"
- mimetype: "text/plain"
- icomment:
Ticket change [f8dd630da1] (rid 243792) by f_phan on 2025-08-05 04:09:39:
- icomment:
As to your question about system path: % echo $PATH /usr/local/bin:/usr/local/python3.13/bin:/Users/franklin/anaconda3/condabin:/Library/Frameworks/Python.framework/Versions/3.11/bin:/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/Apple/usr/bin
- login: "f_phan"
- mimetype: "text/plain"
- icomment: