Jump to content

PHP install creating the wrong oci8 extension.


Recommended Posts

Hi, I'm trying to install Apache 2 and PHP 5.2.6 onto an HP-UX11 box, I've gotten both Apache and PHP running fairly smoothly, but when I try to build with oci8, the configure, make, make install works just fine, but it generates an oci8.a file instead of a oci8.so file, and when I try to include it, it gives me the following message:

 

PHP Warning: PHP startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20060613/oci8.a' - Bad magic number for shared library: /usr/local/lib/php/extensions/no-debug-non-zts-20060613/oci8.a

 

A quick search has said this is giving me the wrong file type or something to that extent, but I'm a bit confused by this, since I'm using, to the best of my knowledge, the exact same configuration as I did on a it's sister box, which functioned just fine.

 

PHP configure line is as follows:

 

./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-oci8=shared,instantclient,/ora01/app/oracle/product/instant_client_10202

 

Apache configure is as follows:

 

./configure --enable-so

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.