Operating System - HP-UX
1833831 Members
2307 Online
110063 Solutions
New Discussion

expect does not start on IA64

 
Michele Tomassi
Advisor

expect does not start on IA64

Hello,
I installed expect 5.43 and all its run time dependencies on an rx7640 system with HP-UX 11.23.
Unfortunately, when I launch it, the following message appears:
# /usr/local/bin/expect
/usr/lib/hpux32/dld.so: Unable to find library 'libtcl.sl'.
Killed


Below the dependencies installed:
# Product(s) not contained in a Bundle:
#

IBMsdd_tag 1.6.2.3 IBMsdd Driver 64-bit Version: 1.6.2.3 Jan-30-2007 15:50
PHCO_35524 1.0 LVM commands patch
PHKL_36244 1.0 LVM Cumulative Patch
PHNE_35545 1.0 LAN cumulative patch
expect 5.43 expect
gettext 0.16.1 gettext
libgcc 4.1.2 libgcc
libiconv 1.11 libiconv
make 3.81 make
pth 2.0.7 pth
tcltk 8.4.14 tcltk

The tcltk has been installed using the .depot file and not the source code.

Any idea to solve the problem? Any help is appreciated. Thanks
Michele
10 REPLIES 10
Dennis Handly
Acclaimed Contributor

Re: expect does not start on IA64

Where did you install libtcl.sl?
You can try:
$ ldd /usr/local/bin/expect

You probably have to set LD_LIBRARY_PATH to where you put libtcl.sl.
Ascenso Pereira
Occasional Advisor

Re: expect does not start on IA64

Hi,
I have same problem after installed expect 5.43 and all its run time dependencies on an rx2620 system with HP-UX 11.23.

I've installed at same time:
expect 5.43 expect
gettext 0.16.1 gettext
libgcc 4.1.2 libgcc
libiconv 1.11 libiconv
make 3.81 make
pth 2.0.7 pth
tcltk 8.4.14 tcltk

All have been installed using the .depot file and not the source code.

The error is the same:
/usr/lib/hpux32/dld.so: Unable to find library 'libtcl.sl'.
Killed

Any help will be apreciated.
Thanks
Ascenso
Dennis Handly
Acclaimed Contributor

Re: expect does not start on IA64

>The error is the same:
/usr/lib/hpux32/dld.so: Unable to find library 'libtcl.sl'.

The answer is the same. Where is this shlib? Have you set LD_LIBRARY_PATH to point to it?
What does file(1) say about the lib?
Ascenso Pereira
Occasional Advisor

Re: expect does not start on IA64

Hi again,

Tanks for help. But the problem persists.
Tcltk didn't install any libctl so
I copied libtcl.sl from /usr/obam/lib to /usr/local/lib/hpux32

Here is some outputs:
# ldd /usr/local/bin/expect
libexpect.sl => usr/local/lib/hpux32/libexpect.sl
Unable to find library 'libtcl.sl'.
# file /usr/local/bin/expect
/usr/local/bin/expect: ELF-32 executable object file - IA64
# env | grep LD_LIBRARY
LD_LIBRARY_PATH=/opt/microfocus/cobol/lib:/usr/local/lib/hpux32
# find / -name libexpect.sl
/usr/local/lib/hpux32/libexpect.sl
# find / -name libtcl.sl
/usr/obam/lib/libtcl.sl
/usr/local/lib/hpux32/libtcl.sl

Thanks
Ascenso
Ascenso Pereira
Occasional Advisor

Re: expect does not start on IA64

Sorry,

I forgot one output:
# file /usr/local/lib/hpux32/libexpect.sl
/usr/local/lib/hpux32/libexpect.sl: ELF-32 shared object file - IA64

Thanks
Ascenso
Dennis Handly
Acclaimed Contributor

Re: expect does not start on IA64

>I installed expect 5.43

Where did you get it? Porting And Archive Centre for HP-UX?

A quick look there indicates that expect needs libtcl.sl. This is part of tcltk.
Unfortunately the name for that is libtcl.so.

>tcltk didn't install any libctl so

I assume you meant libtcl.so? That should have been installed. It should be in the tcltk.tcltk-RUN fileset.

Because of the mismatch in names, you'll have to add this symlink:
# ln -s libtcl.so /usr/local/lib/hpux32/libtcl.sl

>I copied libtcl.sl from /usr/obam/lib

This is a PA lib, remove it.

Oops, you can't use ldd on expect if you are missing some libs, you need chatr(1):
$ chatr /usr/local/bin/expect
Ascenso Pereira
Occasional Advisor

Re: expect does not start on IA64

Well,

Now the error is diferent:
# /usr/local/bin/expect
Tcl_InitNotifier: unable to start notifier thread
Abort(coredump)

What's the wrong now?
Thanks
Ascenso

Ascenso Pereira
Occasional Advisor

Re: expect does not start on IA64

Sorry, but I didn´t answer your first question. I've got all depots from Porting And Archive Centre for HP-UX.
Dennis Handly
Acclaimed Contributor

Re: expect does not start on IA64

>What's the wrong now?

No clue. That message seemed familiar. When I used google I found I had already had gone through this expect nightmare before:
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=1112018
Steven Schweda
Honored Contributor

Re: expect does not start on IA64

Along another axis, ...

I don't know what you're trying to do using
"expect", but you might find Kermit's
scripting capability a useful alternative.

It may not do what you want, but at least
it's self-contained, so it should be easier
to get built and made to run.

http://www.columbia.edu/kermit/
http://www.columbia.edu/kermit/ckscripts.html