[HPADM] SUMMARY: /usr/lib & /usr/local/lib problem

From: Quy NGUYEN DAI (quy.nguyendai@gdtech.net)
Date: Thu Apr 17 2003 - 09:50:28 EDT


My question:
------------
> -----Original Message-----
> From: Quy NGUYEN DAI [mailto:quy.nguyendai@gdtech.net]
> Sent: Thursday, April 17, 2003 7:34 AM
> To: hpux-admin@DutchWorks.nl
> Subject: [HPADM] /usr/lib & /usr/local/lib problem
>
> Hi,
>
> In fact I installed "xli" prog (depot from HPUX porting software) which
> needs zlib, libpng & libjpeg. All 3 libraries were installed in
> /usr/local/... xli is install at /opt/xli/... when I run
> /opt/xli/bin/xli I see the error message:
>
> /usr/lib/dld.sl: Can't find path for shared library: libz.sl
> /usr/lib/dld.sl: No such file or directory
> ABORT instruction
>
> zlib is installed at /usr/local :
>
> > ll /usr/local/lib/libz*
> -rw-r--r-- 1 root sys 75500 Jul 1 2002
> /usr/local/lib/libz.a
> -rwxr-xr-x 1 root sys 65536 Jul 1 2002
> /usr/local/lib/libz.sl
>
> I not like to create sym link in this case.
> Could you tell me what I have to do please.
>
> Under Linux there is a config file /etc/ld.so.conf in which I can add
> the path of libraries and run "ldconfig" for cache update... Is there
> some thing like this in HP-UX 11.00 ?
>
> TIA,
> Best regards,
>
> Quy NGUYEN-DAI
>
> --

Replies
========

"Rama, Subu" wrote:
>
> For 32 bit apps, set the environment variable SHLIB_PATH
> export SHLIB_PATH=/usr/local/lib:/lib:/usr/lib
>
> For 64 bit apps, set LD_LIBRARY_PATH environment variable
>
> before you run the program that needs those libraries.
>
> HP-UX, unfortunately, doesn't use ld.so like Linux does, so there is no
> /etc/ld.so.conf
>
> Subu
>

"Paveza, Gary" wrote:
>
> Find where libz.sl resides. Add it to your SHLIB_PATH variable.
> ---------------------------------------------------------
> Gary Paveza, Jr.
> Senior Systems Administrator
> (302) 252-4831 - phone
> (302) 377-1516 - cell

Mike.Keighley@lexicon.co.uk wrote:
>
> set the SHLIB_PATH env variable, perhaps in /etc/profile, e.g.
>
> export SHLIB_PATH=${SHLIB_PATH:-"/usr/lib"}':/usr/local/lib'
>
> not all applications and libraries respect this, it depends how they were
> compiled/linked.
>
> The "linker and libraries" manual goes into some detail on this.
> The man pages for ld, cc and/or gcc may also help.
>
> --
> Mike.

Thank you very much for all your replies!
Best regards,

Quy NGUYEN-DAI

--
             ---> Please post QUESTIONS and SUMMARIES only!! <---
        To subscribe/unsubscribe to this list, contact majordomo@dutchworks.nl
       Name: hpux-admin@dutchworks.nl     Owner: owner-hpux-admin@dutchworks.nl
 
 Archives:  ftp.dutchworks.nl:/pub/digests/hpux-admin       (FTP, browse only)
            http://www.dutchworks.nl/htbin/hpsysadmin   (Web, browse & search)


This archive was generated by hypermail 2.1.7 : Sat Apr 12 2008 - 11:02:28 EDT