Thursday, April 8, 2010

configure: error: Can't find Tcl private headers

Pavan (pavangopalapurapu@gmail.com) and Segu Venkatesh (itsvenky86@gmail.com) came across this error while trying to configure Expect...

configure: configuring in testsuite
configure: running /bin/sh './configure' --prefix=/usr --cache-file=/dev/null --srcdir=.
loading cache /dev/null
checking for Tcl configuration... found /usr/lib/tclConfig.sh
checking Tcl build library... -L/usr/lib -ltcl8.5 -ldl -lieee -lm
checking for Tcl_CreateCommand... yes
checking if Tcl library build specification is valid... yes
checking for gcc... gcc
checking whether the C compiler (gcc ) works... yes
checking whether the C compiler (gcc ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking whether the compiler (gcc) actually works... yes
checking how to run the C preprocessor... gcc -E
checking if running LynxOS... no
checking for Tcl private headers... checking for tclInt.h... no
configure: error: Can't find Tcl private headers
configure: error: /bin/sh './configure' failed for testsuite

Solution:
Install Expect from the source.. While issuing make:

make install-private-headers