Operating System - Linux
1830216 Members
2040 Online
109999 Solutions
New Discussion

Bad magic number for shared library

 
QuanHongYang
New Member

Bad magic number for shared library

Hi, I come here to tell you an answer on the followed error message.

/usr/lib/dld.sl: Bad magic number for shared library: /home/oracle/product/920/lib/libclntsh.sl.9.0
/usr/lib/dld.sl: Exec format error

As I am debuging one of my application on HP-Unix, it is displayed for me. And I have solved the problem. The step is:

Step 1:
I search the informatoin on the Unix server,
example, set command, export command.
Step 2:
I search the informatoin on my application,
example, chatr command.
Step 3:
I search the informatoin on librarys used by my application,
example, chatr command.
Step 4:
I got the right answer.

For the "Bad magic number for shared library", I checked my sh is Ok, and my application is Ok, and my library is Ok, and the last, I found that the value of SHLIB_PATH and the value of SHLIB_PATH is wrong. So that I modified the value of SHLIB_PATH' and SHLIB_PATH', and all is running well.

Ok. To be good luck.