1833785 Members
2997 Online
110063 Solutions
New Discussion

Get error libc.2

 
SOLVED
Go to solution
Randol Tigrett
New Member

Get error libc.2

My system;;;
HP-UX nm1320 B.10.20 A 9000/785 2010246736 two-user license

I get the following error, does anyone know how to fix?

/usr/lib/dld.sl: Can't open shared library: /usr/lib/libc.2
/usr/lib/dld.sl: No such file or directory
ABORT instruction (core dumped)

Thanks
5 REPLIES 5
T. M. Louah
Esteemed Contributor

Re: Get error libc.2

Some suggestions:
-1st verfiy that all patches on ur system are all configured properly, for example, no return should came out of the following command:
# swlist -l fileset -a state |grep -v \# |grep -v config
if the above command some patches are shown as INSTALLED, run swconfig PHXX_XXXXX or swconfig \* more info are found in Patch_Management paper in /usr/share/doc if ur system is current with patches

-2nd what /usr/lib/dld.sl & what /usr/lib/libc.2 should tell you the reversions & the patch level they are at. validate it the patches on the ITRC patch database.
Cheers,
T??
Little learning is dangerous!
doug hosking
Esteemed Contributor

Re: Get error libc.2

The usual cause for this is trying to run a program on 10.20 that was built on a later release. While 10.20 binaries will generally run on later versions of HP-UX, there is no guarantee that programs built on a newer version of HP-UX will run on an older version.
In this particular case, you are trying to use a version of libc that did not exist on the older HP-UX release.

The solution is usually to rebuild the application in question on the older release.
T G Manikandan
Honored Contributor
Solution

Re: Get error libc.2

Install the libC cumulative patch

http://www1.itrc.hp.com/service/patch/patchDetail.do?patchid=PHCO_25640&context=hpux:700:10:20

PHCO_25640

This should install those missing files

REvert
Chakravarthi
Trusted Contributor

Re: Get error libc.2

Check your LD_LIBRARY_PATH
Jean-Louis Phelix
Honored Contributor

Re: Get error libc.2

hi,

libc.2 only comes with 11.00, so just recompile your prog on a 10.20 system and it should work.

Regards.
It works for me (© Bill McNAMARA ...)