ldd command for testing the Linux library dependencies.

Test if the library (.so file in extension) has all the necessary dependencies use the ldd command.

For an example: ZendDebugger.so

Zend debugger failed to work. After a quick test:

ldd ZendDebugger.so

Output:

linux-vdso.so.1 =>  (0x00007fff843c0000)
libssl.so.0.9.8 => not found
libcrypto.so.0.9.8 => not found
librt.so.1 => /lib64/librt.so.1 (0x00007f9986dc2000)
libm.so.6 => /lib64/libm.so.6 (0x00007f9986b3e000)
libc.so.6 => /lib64/libc.so.6 (0x00007f998679c000)
libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f9986580000) /lib64/ld-linux-x86-64.so.2 (0x0000003840a00000)

This shows the libraries libssl.so.0.9.8 and libcrypto.so.0.9.8 were not found.

After enabling these libraries the ZendDebugger worked.

tags: & category: -