This forum is no longer active. Please post your questions to our new community site

Forums LAMPStack

OCI8 Extension Compiling & Installlation

Subscribe to OCI8 Extension Compiling & Installlation 5 post(s), 2 voice(s)

 
Avatar vbhaura 3 post(s)

Hi,

I am trying to install oci8 with the LAMPStack, I have the following installation:

PHP_VERSION : 5.2.10
ZEND_VERSION: 2.2.0
PHP_OS : Linux – Linux tord-app-be-5 2.6.9-67.ELsmp #1 SMP Wed Nov 7 13:56:44 EST 2007 x86_64

I have downloaded almost every version of the instantclient files from Oracle, both x86_64 and 32bit versions.

I can get the oci8.so to compile but it fails to load when running make test with the following error:

Warning: PHP Startup: Unable to load dynamic library ‘modules/oci8.so’ – modules/oci8.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library ‘modules/oci8.so’ – modules/oci8.so: cannot open shared object file: No such file or directory in Unknown on line 0

If more information is needed please let me know and I shall try and provide it.

Any advice on how to resolve this issue would be greatly appreciated.

Regards,

Vince

p.s. A Bitnami bundle with the oci8 driver already available would be great.

 
Avatar Beltrán Rueda Administrator 3,714 post(s)

Hi,

Could you check if the module has an orphan dependency?

$ ldd oci8.so

 
Avatar vbhaura 3 post(s)

>ldd oci8.so
libclntsh.so.9.0 => /home/oracle/home92x64lnx/lib/libclntsh.so.9.0 (0×0000002a95687000)
libc.so.6 => /lib64/tls/libc.so.6 (0×0000002a9637e000)
libwtc9.so => /home/oracle/home92x64lnx/lib/libwtc9.so (0×0000002a965b3000)
libdl.so.2 => /lib64/libdl.so.2 (0×0000002a966b6000)
libm.so.6 => /lib64/tls/libm.so.6 (0×0000002a967b9000)
libpthread.so.0 => /lib64/tls/libpthread.so.0 (0×0000002a9693f000)
libnsl.so.1 => /lib64/libnsl.so.1 (0×0000002a96a55000)
/lib64/ld-linux-x86-64.so.2 (0×000000552aaaa000)

 
Avatar Beltrán Rueda Administrator 3,714 post(s)

I think this library is a 64 bits binary. If you are trying to install this module in a BitNami LAMPStack you should use the 32 bits binary. Also it could be necessary to add the Oracle library path to the Stack environment in the installdir/scripts/setenv.sh file.

LD_LIBRARY_PATH=/home/oracle/home92x64lnx/lib:STACK_LIBRARIES

 
Avatar vbhaura 3 post(s)

I have changed everything, I think to use the lib32 directory, but I am still experiencing the same issue.
If you could walk me through what I should be doing and where I should be changing settings it would be greatly appreciated.
Thanks

Forums LAMPStack