Problems installing Expect-5.42.1

Richard Caldwell rcaldwellie at
Sun Oct 8 13:24:07 PDT 2006

>When I tried to install Expect-5.42.1 I had an error when I ran the line
>./configure --prefix=/tools --with-tcl=/tools/lib --with-x=no
>I don't remember the specifics but from searching the archives found a
>similar error which suggested adding
>as ./configure was missing a file. This appeared to work but I'm now
>  having an error when I run make SCRIPTS="" INSTALL
>The error is:
>/mnt/lfs/tools/bin ../lib/gcc/i686-pc-linux-gnu/3.4.1/ ../ ../ ../ ../
>i686-pc-linux-gnu/bin/ld: cannot find ltcl8.4
>collect2: ld returned 1 exit status
>make: *** [expect_installed] Error 1

>Expect is heavily dependent on the Tcl package in the previous
>section.  (In fact Expect is written in the Tcl language.)
>Gcc/ld can't find the Tcl library, and it sounds like something went
>wrong with your Tcl install.  Check the contents of /tools/lib.  You
>should find a file there and also a subdir tcl8.4 containing
>a whole bunch of *.tcl files.  There should also be about 10 tcl*.h
>files in /tools/include

>If you don't find all those files, then go back, be sure to remove your
>source/build directories for Tcl and Expect, and restart from the
>beginning of section  5.10. Tcl-8.4.7.

>If all those installed tcl files look okay, we'll have to dig deeper.
>In that case it could be something to do with your file
>but I can't say until I've read that hint.

Thanks Brandon. That worked, and for some weird reason I didn't have
to ad the --with-tcl....... line to ./configure as I had previously done.
I must have done something incorrectly the first time.

More information about the lfs-support mailing list