So I tried to recreate the problem, and was successful to find the same problem.
What you need to add to your configurations is a global dynamic library config entry. I first installed the dsdriver into my /root/ directory, but later unpacked the dsdriver into /usr/local/lib64:
Code: Select all
cd /usr/local/lib64
tar -xvzf ibm_data_server_driver_package_linuxx64_v10.5.tar.gz
Run the installer: (the script requires ksh - you might need to do a
yum install ksh
Code: Select all
cd /usr/local/lib64/dsdriver
./installDSDriver
Clean up the ownership of the installed files to assign them to root:
Code: Select all
cd /usr/local/lib64/dsdriver
chown -v -R root:root *
Create an entry for the /etc/ld.so.conf.d/
Code: Select all
echo "/usr/local/lib64/dsdriver/lib" >> /etc/ld.so.conf.d/db2-x86_64.conf
Then update ldconfig
to verify:
and you should get:
Code: Select all
[root@nagiosxi ~]# ldconfig -p | grep -i db2
libdb2o.so.1 (libc6,x86-64) => /usr/local/lib64/dsdriver/lib/libdb2o.so.1
libdb2o.so (libc6,x86-64) => /usr/local/lib64/dsdriver/lib/libdb2o.so
libdb2clixml4c.so.1 (libc6,x86-64) => /usr/local/lib64/dsdriver/lib/libdb2clixml4c.so.1
libdb2clixml4c.so (libc6,x86-64) => /usr/local/lib64/dsdriver/lib/libdb2clixml4c.so
libdb2.so.1 (libc6,x86-64) => /usr/local/lib64/dsdriver/lib/libdb2.so.1
libdb2.so (libc6,x86-64) => /usr/local/lib64/dsdriver/lib/libdb2.so
libDB2xml4c.so.58 (libc6,x86-64) => /usr/local/lib64/dsdriver/lib/libDB2xml4c.so.58
libDB2xml4c.so (libc6,x86-64) => /usr/local/lib64/dsdriver/lib/libDB2xml4c.so
I did not need to recompile the cpan module DBD::DB2., nor did I need to restart Apache. I did the force immediate check and it came back without the library error. I still got an connection error, but we don't have a DB2 database install in-house.