I am attempting to open multixterm on my desktop machine, but I end up with the error:
usr:~> multixterm
can't find package Expect
while executing
"package require Expect"
(file "/usr/local/bin/multixterm" line 6")
Any help would be appreciated. I’ve tried running multixterm on my laptop and on a friend’s machine, and there is no issue there. Both Expect and multixterm exist in the /usr/local/bin/
directory.
Update: I’ve also found that neither kibitz nor autoexpect will run. I now assume that there is an issue with where the programs are looking for Expect. Does anyone know how I can verify/check that?
Advertisement
Answer
First, run ldd /usr/local/bin/expect
to find out where the Expect library (libexpect
) is. For example:
% ldd /usr/bin/expect | grep libexpect libexpect.so.5.45 => /usr/lib/x86_64-linux-gnu/libexpect.so.5.45 (0x00007f230f348000) %
Then, export the TCLLIBPATH
var with the libexpect
directory. For example (seems like you’re using csh):
% setenv TCLLIBPATH /usr/lib/x86_64-linux-gnu
Then run your multixterm
command.