Re: tcl_expect not in $PATH (43 Views)
Reply
Occasional Advisor
jgd1947
Posts: 8
Registered: ‎01-28-2012
Message 1 of 11 (293 Views)

tcl_expect

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[3]: tclsh:  not found" .  What am I doing wrong.

 

Thanks,

jgd1947

Please use plain text.
Acclaimed Contributor
Dennis Handly
Posts: 24,379
Registered: ‎03-06-2006
Message 2 of 11 (291 Views)

Re: tcl_expect not in $PATH

[ Edited ]

>I enter the command "./autoexpect" from /opt/expect/bin I get the error  "./autoexpect[3]: 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.

Please use plain text.
Occasional Advisor
jgd1947
Posts: 8
Registered: ‎01-28-2012
Message 3 of 11 (285 Views)

Re: tcl_expect not in $PATH

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. 

 

/opt/ActiveTcl-8.4/lib/tclx8.4/help/tcl/intro/tclsh
/opt/ActiveTcl-8.4/bin/tclsh
/usr/local/bin/tclsh
/data/TCL/ActiveTcl8.4.19.1.286921-hpux-parisc/payload/bin/tclsh
/data/TCL/ActiveTcl8.4.19.1.286921-hpux-parisc/payload/lib/tclx8.4/help/tcl/inth

 

Thanks for the quick reply

Please use plain text.
Acclaimed Contributor
Dennis Handly
Posts: 24,379
Registered: ‎03-06-2006
Message 4 of 11 (283 Views)

Re: tcl_expect not in $PATH

>the software was installed yesterday and I have logged in and out as root several times.

 

Then you'll have to manually update your $PATH.

Please use plain text.
Occasional Advisor
jgd1947
Posts: 8
Registered: ‎01-28-2012
Message 5 of 11 (281 Views)

Re: tcl_expect not in $PATH

I am new at this, can you help me with this?

Please use plain text.
Occasional Advisor
jgd1947
Posts: 8
Registered: ‎01-28-2012
Message 6 of 11 (280 Views)

Re: tcl_expect not in $PATH

I looked in /etc/PATH and these are the last 2 entries in the file.

Please use plain text.
Occasional Advisor
jgd1947
Posts: 8
Registered: ‎01-28-2012
Message 7 of 11 (279 Views)

Re: tcl_expect not in $PATH

Sorry, forgot the entries

 

/opt/ActiveTcl-8.4/bin:/opt/expect/bin

Please use plain text.
Acclaimed Contributor
Dennis Handly
Posts: 24,379
Registered: ‎03-06-2006
Message 8 of 11 (277 Views)

Re: tcl_expect not in $PATH

[ Edited ]

>/opt/ActiveTcl-8.4/bin:/opt/expect/bin

 

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:

PATH=$PATH:/opt/ActiveTcl-8.4/bin

Please use plain text.
Occasional Advisor
jgd1947
Posts: 8
Registered: ‎01-28-2012
Message 9 of 11 (267 Views)

Re: tcl_expect not in $PATH

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
    while executing
"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?

 

Thanks,

Jim

Please use plain text.
Acclaimed Contributor
Dennis Handly
Posts: 24,379
Registered: ‎03-06-2006
Message 10 of 11 (261 Views)

Re: tcl_expect not in $PATH

>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?

Please use plain text.
Occasional Visitor
Naheed
Posts: 1
Registered: ‎02-12-2014
Message 11 of 11 (43 Views)

Re: tcl_expect not in $PATH

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 ?

 

#./autoexpect

 

 

 

just hang here, nothing happening

Please use plain text.
The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation