Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Setting library path on AIX machine.

Status
Not open for further replies.

borntorun

MIS
Oct 16, 2003
82
GB
Guys,

I come from a solaris background and this is driving me nuts.

I need to find a library file from /usr/lib...

So i have a korn shell profile that i have setup as the following:

LIBPATH=/usr/lib
LD_LIBRARY_PATH=/usr/lib
PATH=/usr/lib
export PATH LIBPATH LD_LIBRARY_PATH

Now if i do a which on two files in the /usr/lib it finds one but not the other.

What am i doing wrong?

Example:

$ which librtl.a
/usr/lib/librtl.a

However:

$ which libC.a
which: 0652-141 There is no libC.a in /usr/lib

Now they both exist in the /usr/lib:

$ ls -la libC.a
lrwxrwxrwx 1 bin bin 23 Jul 12 2003 libC.a -> /usr/lpp/xlC/
lib/libC.a

$ ls -la librtl.a
lrwxrwxrwx 1 bin bin 21 Jul 12 2003 librtl.a -> /usr/ccs/li
b/librtl.a

Thanks.


 
I did a bit more research and it is linked to the following file in the following directory:

/usr/lpp/xlC/
lib/libC.a

which has a type bin:bin

Does anybody know what that means?

Thanks.
 
Hi,
command 'which' give you names that are commands only (having 'x' privilege). If you will go along links you will see that libc.a have it and libC.a have no.
Regards Boris.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top