Compiling Oracle support, error messages
| From: | Herbert Groot Jebbink | Date: | Tue, 28 May 2002 09:09:41 +0000 |
| Subject: | Compiling Oracle support, error messages | ||
| Groups: | php.db php.install | ||
| Request: | Send a blank email to php-db+get-19463@lists.php.net to get a copy of this message | ||
Hi,
I'm porting a PHP application from Windows to Linux, the PHP script
uses a Oracle server on a HP unix system and PHP.ini is configured
to use the module php_oracle.dll (not phpoci8.dll)
I can't get it to compile on Linux, the configure command works fine, the make command gives the next errors.
In file included from internal_functions.c:34:
/www/src/php-4.2.1/ext/oracle/php_oracle.h:23: ocidfn.h: No such file or directory
/www/src/php-4.2.1/ext/oracle/php_oracle.h:24: ociapr.h: No such file or directory
The files ocidfn.h and ociapr.h are indeed not on my system, I have installed Oracle Client 9.0.1 runtime (at installation there was
a note that you need that installation if you want to develop Oracle applications).
I think I need --with-oracle and not --with-oci8 because the Oracle
server is 7.3.4, if I replace --with-oracle with --with-oci8 then
I get the error message:
In file included from internal_functions.c:34:
/www/src/php-4.2.1/ext/oci8/php_oci8.h:52: oci.h: No such file or directory
If someone has a Linux PHP module for Oracle (orcale.so not oci8.so)
that would be great to :-)
The complete build script that I use is:
#/bin/sh
cd /www/src
rm -R php-4.2.1
rm -R apache_1.3.24
tar zxf ../download/apache_1.3.24.tar.gz &&
tar zxf ../download/php-4.2.1.tar.gz &&
cd /www/src/apache_1.3.24 &&
./configure --prefix=/www &&
LIBS=-lpthread ./config.status &&
make &&
make install &&
cd /www/src/php-4.2.1 &&
./configure --prefix=/www --with-oracle --with-apache=../apache_1.3.24 &&
make &&
make install &&
cd /www/src/apache_1.3.24 &&
./configure --prefix=/www --activate-module=src/modules/php4/libphp4.a
LIBS=-lpthread ./config.status
make &&
make install
The complete output of the make command:
Making all in Zend
make[1]: Entering directory `/www/src/php-4.2.1/Zend'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/www/src/php-4.2.1/Zend'
Making all in main
make[1]: Entering directory `/www/src/php-4.2.1/main'
make[2]: Entering directory `/www/src/php-4.2.1/main'
gcc -I. -I/www/src/php-4.2.1/main -I/www/src/php-4.2.1/main -I/www/src/php-4.2.1 -I/www/src/apache_1.3.24/src/include -I/www/src/apache_1.3.24/src/os/unix -I/www/src/php-4.2.1/Zend -I/www/src/php-4.2.1/ext/mysql/libmysql -I/opt/oracle/rdbms/demo -I/opt/oracle/plsql/public -I/www/src/php-4.2.1/ext/xml/expat -I/www/src/php-4.2.1/TSRM -g -O2 -c internal_functions.c && touch internal_functions.lo
In file included from internal_functions.c:34:
/www/src/php-4.2.1/ext/oracle/php_oracle.h:23: ocidfn.h: No such file or directory
/www/src/php-4.2.1/ext/oracle/php_oracle.h:24: ociapr.h: No such file or directory
make[2]: *** [internal_functions.lo] Error 1
make[2]: Leaving directory `/www/src/php-4.2.1/main'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/www/src/php-4.2.1/main'
make: *** [all-recursive] Error 1
Greetings, Herbert