By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
425,625 Members | 1,283 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 425,625 IT Pros & Developers. It's quick & easy.

"A file or directory in the path name does not exist." - dlopen

P: 2
Hi All

when i am calling libencode.so from function using external library(libtest.so) i am getting below error in db2diag.log means ,its n't able to get the proper GCC library from DB2 Datatbase.


---------------------------------------------
2011-02-25-12.33.48.663266+300 E1493A1058 LEVEL: Error (OS)
PID : 33095922 TID : 1 PROC : db2fmp (8901) 0
INSTANCE: db2test NODE : 000
EDUID : 1 EDUNAME: db2fmp (8901) 0
FUNCTION: DB2 UDB, oper system services, sqloAIXLoadModuleTryShr, probe:130
CALLED : OS, -, dlopen
OSERR : ENOENT (2) "A file or directory in the path name does not exist."
MESSAGE : Attempt to load specified library failed.
DATA #1 : Library name or path, 37 bytes
/home/db2test/Ranjit/lib/libtest.so
DATA #2 : shared library load flags, PD_TYPE_LOAD_FLAGS, 4 bytes
2
DATA #3 : String, 416 bytes
0509-022 Cannot load module /home/db2test/Ranjit/lib/libtest.so.
0509-150 Dependent module libgcc_s.a(shr.o) could not be loaded.
0509-022 Cannot load module libgcc_s.a(shr.o).
0509-026 System error: A file or directory in the path name does not exist.
0509-022 Cannot load module /home/db2test/Ranjit/lib/libtest.so.
0509-150 Dependent module /home/db2test/Ranjit/lib/libtest.so could not be loaded.

2011-02-25-12.33.48.664507+300 E2552A957 LEVEL: Error (OS)
PID : 33095922 TID : 1 PROC : db2fmp (8901) 0
INSTANCE: db2test NODE : 000
EDUID : 1 EDUNAME: db2fmp (8901) 0
FUNCTION: DB2 UDB, oper system services, sqloAIXLoadModuleTryShr, probe:140
----------------------------------------------
Please help me which environment path needs to set in DB2 for LIBRARY linking.

[db2test@blrtmp04 db2dump]$ ldd /home/db2test/Ranjit/lib/libtest.so
/home/db2test/Ranjit/lib/libtest.so needs:
/usr/lib/libc.a(shr_64.o)
/home/db2test/OPENSSL/lib//libcrypto.a(libcrypto64.so.0.9.8)
/home/db2test/GCCTools/gcc-4.5.1/lib/gcc/powerpc-ibm-aix6.1.0.0/4.5.1/pthread//libgcc_s.a(shr.o)
/unix
/usr/lib/libcrypt.a(shr_64.o)
/usr/lib/libpthreads.a(shr_xpg5_64.o)
/usr/lib/libc.a(shr.o)
/usr/lib/libpthreads.a(shr_xpg5.o)
/usr/lib/libcrypt.a(shr.o)
/usr/lib/libpthreads.a(shr_comm.o)


Please help me in this.

Regards,
ranjit
Feb 25 '11 #1
Share this Question
Share on Google+
2 Replies


vijay2082
100+
P: 112
Hi Ranjit,

See below link and see if it works out for you.

http://publib.boulder.ibm.com/infoce...c/t0006747.htm

Cheers, Vijay
Feb 25 '11 #2

P: 2
Hi vijay,
Thanks for ur replay,but i installed DB2 in non root user,and its not able to identify the "home/db2test/GCCTools/gcc-4.5.1/lib/gcc/powerpc-ibm-aix6.1.0.0/4.5.1/pthread/".
I didn't get how that link helps me,please explain me how it will helps,if i did in non root installation of DB2.

Thanks & Regards
ranjit
Feb 26 '11 #3

Post your reply

Sign in to post your reply or Sign up for a free account.

Browse more DB2 Database Questions on Bytes