Search code examples
macos64-bittcltk-toolkit

Tcl 8.6 installation issue on Mac OS X Lion


I'm trying to build 64 bit of Tcl/Tk on Mac OS X Lion.

  1. Downloading the source from source forge
  2. ./configure --enable-framework --enable-64-bit --prefix=/usr/local
  3. make
  4. sudo make install

Everything works fine up to make, but with make install, I have version conflict error.

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

What went wrong? How to fix this error?


Solution

  • Turns out I needed to pass NATIVE_TCLSH directly to make rather than through the environment:

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