./curl -V showing fatal: libldap.so.5: open failed: No such file or directory

Hi Guys,

I am facing this Error

bash-2.03$ ./curl -V
ld.so.1: curl: fatal: libldap.so.5: open failed: No such file or directory
Killed
bash-2.03$

while executing

./curl -V in /opt/sfw/bin directory.

I am using Sun Solaris 10.

which package upgrage can give me this missing file?:confused::confused::confused:

Please guide me.

Thanks in Advance.

Try:

pkgchk -l -P libldap
1 Like

I have only this commands available in os

bash-2.03$ /usr/local/bin/sudo /usr/bin/pkg
pkginfo   pkgmk     pkgparam  pkgproto  pkgtrans

So ask your system administrator to run it for you. Another approach to find this library (if it is installed) is to run:

find / -type f -name "libldap*"

It will take some time to complete though.

1 Like

I have done this too.

I could not find it.

I just checked on a Solaris 10 system and that library is installed as part of the SUNWcsl in /usr/lib/libldap.so.5. Your system admin should take a look at this.

1 Like

Sorry:
Update :
It is Solaris 8 OS , 64 bit sparc.

Can anyone please tell me which pachakge contains this "libldap.so.5" file?

I really want to solve this.
Edit:-
Yes, I checked SUNWcsl package on required system it is

bash-2.03$ /usr/local/bin/sudo /usr/bin/pkginfo | grep SUNWcsl
Password:
system      SUNWcsl              Core Solaris, (Shared Libs)
system      SUNWcslx             Core Solaris Libraries (64-bit)
bash-2.03$ /usr/local/bin/sudo /usr/bin/pkginfo -l  SUNWcsl
   PKGINST:  SUNWcsl
      NAME:  Core Solaris, (Shared Libs)
  CATEGORY:  system
      ARCH:  sparc
   VERSION:  11.8.0,REV=2000.01.08.18.12
   BASEDIR:  /
    VENDOR:  Sun Microsystems, Inc.
      DESC:  core shared libraries for a specific instruction-set architecture
    PSTAMP:  on28-patch20070823120115
  INSTDATE:  May 17 2008 19:49
   HOTLINE:  Please contact your local service provider
    STATUS:  completely installed
     FILES:      251 installed pathnames
                  14 shared pathnames
                  14 directories
                 117 executables
               21835 blocks used (approx)
bash-2.03$
 

and on the other system where it is working proerly is;-

-bash-3.2$  /usr/local/bin/sudo /usr/bin/pkginfo | grep SUNWcsl
Password:
system      SUNWcsl                          Core Solaris, (Shared Libs)
system      SUNWcslr                         Core Solaris Libraries (Root)
-bash-3.2$  /usr/local/bin/sudo /usr/bin/pkginfo -l SUNWcsl
   PKGINST:  SUNWcsl
      NAME:  Core Solaris, (Shared Libs)
  CATEGORY:  system
      ARCH:  sparc
   VERSION:  11.10.0,REV=2005.01.21.15.53
   BASEDIR:  /
    VENDOR:  Oracle Corporation
      DESC:  core shared libraries for a specific instruction-set architecture
    PSTAMP:  on10ptchfeat20110620074841
  INSTDATE:  Apr 02 2013 17:24
   HOTLINE:  Please contact your local service provider
    STATUS:  completely installed
     FILES:      658 installed pathnames
                  25 shared pathnames
                  41 directories
                 210 executables
               32288 blocks used (approx)
-bash-3.2$ 

I feel I need to update from 11.8.0 to 11.10.0, but will it solve my problem.

Where can I get this package 11.10.0 SUNWcsl ?
How to check whether the missing file libldap.so.5 is part of this package?

Please advice.

check with oracle for the upgrade/patch packages ... since this is solaris 8, it is most likely some required patches were missed from being installed ...

1 Like

You cannot install a Solaris 10 package on Solaris 8. Find a curl binary built for the latter.

1 Like

I downloaded curl package for solaris 8 from this site:
-curl - Download

the package is

curl-7.15.1.pkgadd.tar.Z

however when I untar it , I got:-

bash-2.03$ ls -l
total 4518
-rw-r--r--   1 mahadis  staff       1044 Dec  9  2005 LICENSE.CURL
-rw-r--r--   1 mahadis  staff      24389 Dec  9  2005 LICENSE.LIBGCRYPT.LGPL
-rw-r--r--   1 mahadis  staff      24390 Dec  9  2005 LICENSE.LIBGNUTLS.LGPL
-rw-r--r--   1 mahadis  staff      24389 Dec  9  2005 LICENSE.LIBGPG-ERROR.LGPL
-rw-r--r--   1 mahadis  staff      24390 Dec  9  2005 LICENSE.LIBTASN1.LGPL
-rw-r--r--   1 mahadis  staff       1439 Dec  9  2005 LICENSE.ZLIB
-rw-r--r--   1 mahadis  staff      24485 Dec  9  2005 LICENSE.pycurl.LGPL
-rw-r--r--   1 mahadis  staff       1822 Apr 19  2007 README
-rw-r--r--   1 mahadis  staff      37376 Apr 19  2007 TWWcurl715d
-rw-r--r--   1 mahadis  staff     166912 Apr 19  2007 TWWcurl715m
-rw-r--r--   1 mahadis  staff     800256 Apr 19  2007 TWWcurl715u
-rw-r--r--   1 mahadis  staff    1139200 Aug  7 10:42 curl-7.15.1.pkgadd.tar
bash-2.03$

Don't know how to install it, but then in read me file I found something like this:-

Solaris (pkgadd)
================
# cd /tmp
# compress -d expat-1.95.8.pkgadd.tar.Z
# tar xf expat-1.95.8.pkgadd.tar
# pkgadd -d TWWlibexpat19m TWWlibexpat19m
# pkgadd -d TWWlibexpat19u TWWlibexpat19u
 

Why the same package is mentioned twice while installing with pkgadd - d command ? ;Any idea , how to install this curl packgage on solaris 8 ?

Thanks for you help till now, I truly appreciate it.