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

时间:2013-06-02 20:16:57

标签: macos 64-bit tcl tk

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

  1. source forge
  2. 下载源代码
  3. ./configure --enable-framework --enable-64-bit --prefix=/usr/local
  4. make
  5. sudo make install
  6. 一切正常,但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
    

    出了什么问题?如何解决此错误?

2 个答案:

答案 0 :(得分:3)

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

sudo make install NATIVE_TCLSH=/usr/local/bin/tclsh8.6

答案 1 :(得分:1)

我需要设置环境变量:TCL_VERSION=8.6 sudo make install

相关问题