Operating System - HP-UX
1834813 Members
2628 Online
110070 Solutions
New Discussion

question about install expect?

 
faust2004
Regular Advisor

question about install expect?

Hi, experts,
I download pre-compiled binary depot of expect and tcl and tk from http://hpux.connect.org.uk ,
I store the depot in /ys, the swinstall -s
depot,
when I exec expect, it failed :

hp_ov:/var/ys/expect-5.36/home/ys/bin# ./expect
/usr/lib/dld.sl: Can't open shared library: /home/ys/lib/libtcl8.3.sl
/usr/lib/dld.sl: No such file or directory

can anybody tell me why?
thanks
Sunny

10 REPLIES 10
SHABU KHAN
Trusted Contributor

Re: question about install expect?

Sunny,

It seems to be a PATH problem ... Do you have all your environment variables needed for expect exported correctly ...

Do a echo $PATH ...

Thanks,
Shabu
faust2004
Regular Advisor

Re: question about install expect?


hp_ov:/var/ys/lib# echo $PATH
.:/usr/sbin:/usr/bin:/usr/ccs/bin:/usr/contrib/bin:/opt/nettladm/bin:/opt/fc/bin
:/opt/fcms/bin:/opt/upgrade/bin:/usr/bin/X11:/usr/contrib/bin/X11:/opt/pd/bin:/o
pt/graphics/phigs/bin:/opt/resmon/bin:/usr/sbin/stm/uut/bin/progs:/opt/hparray/b
in:/opt/ignite/bin:/opt/OV/bin/OpC:/opt/perf/bin:/sbin:/home/root:/var/ys:/patro
l/p4ito:/patrol/patrol/PATROL3.4/HPUX-V11-64/bin:/opt/netscape:/opt/OV/bin:/opt/
OV/bin/OpC:/opt/OV/bin/OpC/install:/usr/netm/hp

I can find the /var/ys/expect-5.36/home/ys/lib/libtcl8.3.sl file, but expect look for the /home/ys/lib/libtcl8.3.sl





Steven Sim Kok Leong
Honored Contributor

Re: question about install expect?

Hi,

You need to install Tcl and Tk which are required for Expect to run properly.

You can download the Tcl/Tk toolkit from here:

http://hpux.connect.org.uk/hppd/hpux/Tcl/

Hope this helps. Regards.

Steven Sim Kok Leong
faust2004
Regular Advisor

Re: question about install expect?

Hi, Steven ,
I installed the expect and tcl and tk,
but the problem exist.

thanks
Sunny
Steven Sim Kok Leong
Honored Contributor

Re: question about install expect?

Hi,

Try setting your LD_LIBRARY_PATH and SHLIB_PATH and see if it works.

Hope this helps. Regards.

Steven Sim Kok Leong
Steven Sim Kok Leong
Honored Contributor

Re: question about install expect?

Hi,

If that doesn't work, my guess is that probably the depot creator hardcoded some of the absolute path of the libraries during the conversion.

If this issue is unresolved, I would use either Ansi-C or gcc to compile tcl, tk and expect straight from downloaded sources (instead of binaries) using the usual ./configure, make and make install.

Hope this helps. Regards.

Steven Sim Kok Leong
faust2004
Regular Advisor

Re: question about install expect?

Hi , steven,
How to use gcc if I have not cc. must I chang the make file or sth ?
Steven Sim Kok Leong
Honored Contributor

Re: question about install expect?

Hi,

If you do not have gcc or ansi-c, then you will need to download and swinstall the depot from the free depot software site.

If you already have gcc, it will be installed as /usr/local/bin/gcc. Just make sure that it is in your PATH.

./configure will automatically detect whether your gcc works and use it.

Hope this helps. Regards.

Steven Sim Kok Leong
faust2004
Regular Advisor

Re: question about install expect?

Steven,

I installed tk and tcl , then installed expect, follow messge appeared, it seem that
swinstall can not find tk and tcl

"expect.expect-RUN,r=5.33" cannot be successfully resolved. ?
??? ERROR: The dependencies for fileset "expect.expect-RUN,r=5.33" cannot ?
??? be resolved (see previous lines). ?
??? You must resolve the above dependencies before operating on ?
??? this fileset or change the "enforce_dependencies" option to ?
??? "false".

Thanks
Sunny
faust2004
Regular Advisor

Re: question about install expect?

Hi, Steven,
I remove expect, tcl , tk, then install inthe sequence: tcl, tk , expect.
and now it 's ok

Thanks
Sunny