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: 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 =>  (0x00007fff44942000) => /lib64/ (0x00007fc93e845000) => not found => /lib64/ (0x00007fc93e63b000) => /lib64/ (0x00007fc93e400000) => /lib64/ (0x00007fc93e1e2000) => /lib64/ (0x00007fc93dfde000) => not found => not found => /lib64/ (0x00007fc93dc69000)
        /lib64/ (0x00007fc93eaec000)

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

  • cd /etc/ 
  • echo /opt/ibm/HTTPServer/lib > httpd-lib.conf   (in that lib file i've found the library missed)
  • rm /etc/                                             (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/,) 

After this config my IHS was reable to restart              

No comments:

Post a Comment