Friday, August 22, 2014

IBM HTTP server error while loading shared libraries

Yesterday i was moving a IBM Connections environment 4.5 from old datacenter to Softlayer.
This migration was including new ipaddress and while i was reconfiguring the IHS server , i saw that did not restart with following error:

./httpd: error while loading shared libraries: libaprutil-1.so.0: cannot open shared object file: No such file or directory

 After some search i saw a wiki article about troubleshooting IHS start and this was fixing my issue

The trick was using ldd linux command that print shared library dependencies:

ldd ./httpd
        linux-vdso.so.1 =>  (0x00007fff44942000)
        libm.so.6 => /lib64/libm.so.6 (0x00007fc93e845000)
        libaprutil-1.so.0 => not found
        librt.so.1 => /lib64/librt.so.1 (0x00007fc93e63b000)
        libcrypt.so.1 => /lib64/libcrypt.so.1 (0x00007fc93e400000)
        libpthread.so.0 => /lib64/libpthread.so.0 (0x00007fc93e1e2000)
        libdl.so.2 => /lib64/libdl.so.2 (0x00007fc93dfde000)
        libexpat.so.0 => not found
        libapr-1.so.0 => not found
        libc.so.6 => /lib64/libc.so.6 (0x00007fc93dc69000)
        /lib64/ld-linux-x86-64.so.2 (0x00007fc93eaec000)

This means the OS doesn't have the libray path in /etc/ld.so.conf.d  and we need to add it and reload the library config


  • cd /etc/ld.so.conf.d 
  • echo /opt/ibm/HTTPServer/lib > httpd-lib.conf   (in that lib file i've found the library missed)
  • rm /etc/ld.so.cache                                             (to clear library cache)
  • /sbin/ldconfig                      (creates the necessary links and cache to the most recent shared libraries found in the directories specified on the command line, in the file /etc/ld.so.conf,) 

After this config my IHS 8.0.0.5 was reable to restart              

No comments:

Post a Comment