Solaris: ldd doesn't find libraries in exported environment variable LD_LIBRARY_PATH | Unix Linux Forums | Solaris

  Go Back    


Solaris The Solaris Operating System, usually known simply as Solaris, is a Unix-based operating system introduced by Sun Microsystems. The Solaris OS is now owned by Oracle.

Solaris: ldd doesn't find libraries in exported environment variable LD_LIBRARY_PATH

Solaris


Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 12-09-2013
old_as_a_fossil old_as_a_fossil is offline
Registered User
 
Join Date: Mar 2010
Last Activity: 10 December 2013, 11:02 AM EST
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Solaris: ldd doesn't find libraries in exported environment variable LD_LIBRARY_PATH

I have given the relevant details below. Why are the libraries in /export/home/builds/pc9x_root/960/build/powrmart/pmbuild/bin/SunOS.64.r are invisible to ldd?

%setenv

LD_LIBRARY_PATH=/export/home/builds/pc9x_root/960/build/powrmart/pmbuild/bin/SunOS.64.r:/databases/oracle10.2.0_64BIT/lib. . .

. . .



% ldd drivertest

libpmcuti.so => (file not found)

libpmasrt.so => (file not found)

libpmser.so => (file not found)

libpmi18n.so => (file not found)

libpmdec.so => (file not found)

libpmodl.so => (file not found)
libclntsh.so.10.1 => /databases/oracle10.2.0_64BIT/lib/libclntsh.so.10.1

. . .



% cd /export/home/builds/pc9x_root/960/build/powrmart/pmbuild/bin/SunOS.64.r



% ls libpmcuti.so libpmasrt.so libpmser.so libpmi18n.so libpmdec.so libpmodl.so

libpmasrt.so libpmdec.so libpmodl.so

libpmcuti.so libpmi18n.so libpmser.so





% file libpmcuti.so libpmasrt.so libpmser.so libpmi18n.so libpmdec.so libpmodl.so

libpmcuti.so: ELF 64-bit MSB dynamic lib SPARCV9 Version 1, dynamically linked, not stripped

libpmasrt.so: ELF 64-bit MSB dynamic lib SPARCV9 Version 1, dynamically linked, not stripped

libpmser.so: ELF 64-bit MSB dynamic lib SPARCV9 Version 1, dynamically linked, not stripped

libpmi18n.so: ELF 64-bit MSB dynamic lib SPARCV9 Version 1, dynamically linked, not stripped

libpmdec.so: ELF 64-bit MSB dynamic lib SPARCV9 Version 1, dynamically linked, not stripped

libpmodl.so: ELF 64-bit MSB dynamic lib SPARCV9 Version 1, dynamically linked, not stripped



How ldd can find the below library however, I don't know.

% file /databases/oracle10.2.0_64BIT/lib/libclntsh.so.10.1

/databases/oracle10.2.0_64BIT/lib/libclntsh.so.10.1: ELF 64-bit MSB dynamic lib SPARCV9 Version 1, dynamically linked, not stripped



Please help before I shoot myself.
Sponsored Links
    #2  
Old 12-10-2013
hicksd8 hicksd8 is offline Forum Advisor  
Registered User
 
Join Date: Feb 2012
Last Activity: 25 October 2014, 5:20 PM EDT
Location: Cornwall, UK
Posts: 832
Thanks: 44
Thanked 157 Times in 142 Posts
http://docs.oracle.com/cd/E19455-01/...v-7/index.html
Sponsored Links
    #3  
Old 12-10-2013
old_as_a_fossil old_as_a_fossil is offline
Registered User
 
Join Date: Mar 2010
Last Activity: 10 December 2013, 11:02 AM EST
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
i'm sorry, I don't see the relevance of the link you poster. I'm using ld_library_path as already mentioned.
    #4  
Old 12-10-2013
hicksd8 hicksd8 is offline Forum Advisor  
Registered User
 
Join Date: Feb 2012
Last Activity: 25 October 2014, 5:20 PM EDT
Location: Cornwall, UK
Posts: 832
Thanks: 44
Thanked 157 Times in 142 Posts
"The 64-bit dynamic linker's search path can be completely overridden using the LD_LIBRARY_PATH_64 environment variable"

Have you tried using the LD_LIBRARY_PATH_64 with the emphasis on the "_64"?

If Oracle provide a facility to override the whole thing, why not use it!

Last edited by hicksd8; 12-10-2013 at 12:04 PM..
Sponsored Links
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Use of exported variable urfrnddpk Shell Programming and Scripting 6 11-28-2012 09:03 AM
using the exported variable after su rahulkav Shell Programming and Scripting 1 06-04-2010 12:49 PM
Find a environment variable Value ! tkbharani UNIX for Advanced & Expert Users 3 07-06-2007 08:29 AM
Find a environment variable Value ! tkbharani UNIX for Advanced & Expert Users 1 07-06-2007 08:01 AM
ldd doesn't work with 64bit .so library on AIX modemer Programming 1 02-15-2005 08:00 PM



All times are GMT -4. The time now is 07:35 PM.