Mac OS X Lion 上的 Tcl 8.6 安装问题

pro*_*eek 4 macos 64-bit tk-toolkit tcl

我正在尝试在 Mac OS X Lion 上构建 64 位 Tcl/Tk。

  1. 从Source Forge下载源代码
  2. ./configure --enable-framework --enable-64-bit --prefix=/usr/local
  3. make
  4. sudo make install

一切工作正常,但使用时make install,我遇到版本冲突错误。

Installing private header files to     
/Library/Frameworks/Tcl.framework/Versions/8.6/PrivateHeaders/
ERROR: version conflict for package "Tcl": have 8.5.9, need 8.6
If running this script from 'make html', set the NATIVE_TCLSH environment
variable to point to an installed tclsh8.6 (or the equivalent tclsh86.exe
on Windows).
make: *** [html-tcl] Error 1
Run Code Online (Sandbox Code Playgroud)

什么地方出了错?如何修复这个错误?

jjo*_*han 5

结果我需要直接传递 NATIVE_TCLSH 来 make 而不是通过环境:

sudo make install NATIVE_TCLSH=/usr/local/bin/tclsh8.6
Run Code Online (Sandbox Code Playgroud)