01-28-2012 07:35 PM
I have installed tcl and expect on a HP RX6600 Unix version 11.23. Both software list as install with swlist command. However, when I enter the command "./autoexpect" from the path # /opt/expect/bin I get the error "./autoexpect: tclsh: not found" . What am I doing wrong.
01-28-2012 07:48 PM - edited 01-28-2012 07:48 PM
>I enter the command "./autoexpect" from /opt/expect/bin I get the error "./autoexpect: tclsh: not found".
Where is tclsh? Somewhere in /usr/local/bin/? Is that in your PATH?
Sometimes after installing a product, the path to the binaries is added to /etc/PATH. And to take affect, you must relogin.
01-28-2012 08:31 PM
tclsh is located in the following paths: I have logged out and back in several time. the software was installed yesterday and I have logged in and out as root several times.
Thanks for the quick reply
01-28-2012 09:26 PM - edited 01-28-2012 09:28 PM
This should do it, provided ~/.profile adds /etc/PATH to its $PATH.
Otherwise add that path to the part of .profile that fiddle with $PATH:
01-29-2012 01:47 PM
I put $PATH in the .profile. Now when I try and run the autoexpect command I get the following error:
can't find package Expect
"package require Expect"
(file "./autoexpect" line 4)
I do not know what you mean by the PATH=$PATH:/opt/ActiveTcl-8.4/bin?
Do I need to put this entire statement in the .profile?
01-30-2012 12:18 AM
>I do not know what you mean by the PATH=$PATH:/opt/ActiveTcl-8.4/bin?
>Do I need to put this entire statement in the .profile?
It appears you already added that line since you're getting farther.
>can't find package Expect
There may be some other paths you need to set? Or else you didn't install Expect where it wants it?
3 weeks ago
I've just add "load /usr/local/lib/hpux32/expect5.45/libexpect5.45.so" line before the line "package require Expect", and then no error given, but when I execute autoexpect, it just hang there, nothing happening :(
no command are working there, can anyone help ?
just hang here, nothing happening