I'm trying to build 64 bit of Tcl/Tk on Mac OS X Lion.
./configure --enable-framework --enable-64-bit --prefix=/usr/local
make
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?
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