Compiling php for Oracle
| From: | Christian Villada | Date: | Sat, 19 Jul 2003 07:54:33 +0000 |
| Subject: | Compiling php for Oracle | ||
| Groups: | php.install | ||
| Request: | Send a blank email to php-install+get-11307@lists.php.net to get a copy of this message | ||
I'm trying to get PHP 4.2.2 connected to Oracle 8.1.7
in Linux RedHat 9
I had the apache server alredy installed, so I
installed Oracle supposing that the apache was ready
to handle oracle.
When I try the aplication it gives me an error saying
that it don't have the osilogon() function. So I start
to read in PHP.net.
I learnt that the osilogon() is part of the Oracle
Call Interface (OCI8) and that I need to recompile
apache with the --with-oci8 option (I've checked with
phpinfo() and it says that php is running
without-oci8.
I've tried this in the phpxxx directory as root:
./configure --with-oci8
make
make install
I had several warnings in the ./configure phase and
then i get this errors in the make phase:
./.libs/libphp4.a(my_error.o)(.text+0x275): In
function `my_error':
/usr/src/redhat/BUILD/php-4.2.2/ext/mysql/libmysql/my_error.c:32:
undefined reference to `errno'
./.libs/libphp4.a(my_lib.o)(.text+0x37a): In function
`my_dir':
/usr/src/redhat/BUILD/php-4.2.2/ext/mysql/libmysql/my_lib.c:162:
undefined reference to `errno'
./.libs/libphp4.a(my_lib.o)(.text+0x546): In function
`my_stat':
/usr/src/redhat/BUILD/php-4.2.2/ext/mysql/libmysql/my_lib.c:585:
undefined reference to `errno'
./.libs/libphp4.a(my_getwd.o)(.text+0xbe):/usr/src/redhat/BUILD/php-4.2.2/ext/mysql/libmysql/my_getwd.c:43:
more undefined references to `errno' follow
collect2: ld returned 1 exit status
make[1]: *** [php] Error 1
make[1]: Leaving directory
`/usr/src/redhat/BUILD/php-4.2.2'
make: *** [all-recursive] Error 1
After the make install i dont get any php.ini
I've never compiled apache before, so I think that
maybe I'm just doing it wrong.
Can anybody help me please?
Am I missing something?
Thanks in advance
__________________________________
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com