Description of problem: Running spacewalk-setup on a 64-bit (x86_64) installation of rhel, will generate an error (see below). The error complains about a library being of the wrong ELF class. This typically indicates a 32-bit library was found instead of the 64-bit one. Both libraries are installed: [root@test12-64 ~]# locate libclntsh.so.10.1 /usr/lib/oracle/10.2.0.4/client64/lib/libclntsh.so.10.1 /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/lib/libclntsh.so.10.1 We should setup the ld.conf.d correctly when we install the spacewalk rpms. ---- error ---- Could not connect to the database. Your connection information may be incorrect. Error: install_driver(Oracle) failed: Can't load '/usr/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi/auto/DBD/Oracle/Oracle.so' for module DBD::Oracle: libclntsh.so.10.1: wrong ELF class: ELFCLASS32 at /usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi/DynaLoader.pm line 230, <STDIN> line 6. at (eval 784) line 3 Compilation failed in require at (eval 784) line 3, <STDIN> line 6. Perhaps a required shared library or dll isn't installed where expected at /usr/bin/spacewalk-setup line 1492 ---- error ----
WORK AROUND ------------- echo "/usr/lib/oracle/10.2.0.4/client64/lib/" > /etc/ld.so.conf.d/spacewalk.conf
Recommended fix, add /etc/ld.so.conf.d/spacewalk.conf to oracle-lib-compat rpm.
Fixed in git commit 6caccf13802aa5224bd71a11fd87b0df86eda596 461765 - added oracle libs to ldconfig path oracle-lib-compat-10.2-13
verified changes /etc/ld.so.conf.d/oracle-lib-compat.conf
Spacewalk has been released for some time.