Hi Greg, On Mon, Oct 19, 2015 at 8:00 PM, Greg Wooledge <g...@wooledge.org> wrote: > Sergei Golovan (sgolo...@nes.ru) wrote: > >> As far as I can see, you're using your own locally built Tcl which >> can't find the Tcl packages which come with Debian because they are >> placed in a different location. > > titan:~$ strace -e open,fstat64 /usr/bin/tclsh8.6 > open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3 > open("/usr/local/lib/libtcl8.6.so", O_RDONLY|O_CLOEXEC) = 3 > [...] > > This appears to be the real issue. The locally installed tcl (using > the default prefix=/usr/local) drops a libtcl8.6.so in /usr/local/lib > and then ld.so/ldconfig caches it, so /usr/bin/tclsh8.6 uses it. > > So I guess the fix is to manually remove the locally installed tcl > (very carefully!) and rebuild it with some other prefix.
You're right. It'd be better to put locally built Tcl/Tk under /opt somewhere. Anyway, this seems not to be a tcl-expect bug, so, i'll close this bugreport. Cheers! -- Sergei Golovan