For Programmers: Free Programming Magazines  


Home > Archive > PHP Installation > December 2007 > ./configure error -- oci8









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author ./configure error -- oci8
Porwal, Nikhil

2007-12-12, 7:03 pm

Hi



I am trying to configure Oracle Client with Php + apache server. My
Apache + php server was running fine and also oracle client SQLPLUS
utility was able to connect to remote database.



But when I tried the steps in the link
http://www.oracle.com/technology/pu...hp_instant.html to
configure OCI8 for the PHP, it went into trouble.



I am using php5.2.4, with apache 2 and Oracle client 10.2.0.3 here.



So when trying to perform step 6, (skipped 5, as it was PHP bug 31084
<http://bugs.php.net/bug.php?id=31084> which is fixed now) I got an
error in the buildconf -force script.



So after clearing the config cache, I skipped build part and gave the
configure command as below.



.../configure
--with-oci8=instantclient,/usr/lib/oracle/10.2.0.3/client/lib/
--prefix=/usr/share --datadir=/usr/share/php --bindir=/usr/bin
--with-apxs2=/usr/sbin/apxs2-prefork --libdir=/usr/share
--includedir=/usr/include --bindir=/usr/bin
--with-config-file-path=/etc/php5 --enable-mbstring --enable-mbregex
--with-gd --enable-gd-imgstrttf --enable-gd-native-ttf
--with-zlib-dir=/usr/lib --with-png-dir=/usr/lib
--with-jpeg-dir=/usr/lib --with-tiff-dir=/usr/lib
--with-ttf-dir=/usr/lib --with-freetype-dir=/usr/lib --enable-ftp
--enable-memory-limit --enable-safe-mode --enable-bcmath
--enable-calendar --enable-ctype --with-ftp --with-bz2
--enable-inline-optimization --with-iconv



This command gave me below warning



Notice: Following unknown configure options were used:



--enable-gd-imgstrttf

--with-tiff-dir=/usr/lib

--with-ttf-dir=/usr/lib

--enable-memory-limit

--with-ftp





Also the debug.log as below



CONFIGURE: './configure'
'--with-oci8=instantclient,/usr/lib/oracle/10.2.0.3/client/lib/'
'--prefix=/usr/share' '--datadir=/usr/share/php' '--bindir=/usr/bin'
'--with-apxs2=/u

sr/sbin/apxs2-prefork' '--libdir=/usr/share' '--includedir=/usr/include'
'--bindir=/usr/bin' '--with-config-file-path=/etc/php5'
'--enable-mbstring' '--enable-mbregex' '--with-gd

' '--enable-gd-imgstrttf' '--enable-gd-native-ttf'
'--with-zlib-dir=/usr/lib' '--with-png-dir=/usr/lib'
'--with-jpeg-dir=/usr/lib' '--with-tiff-dir=/usr/lib'
'--with-ttf-dir=/usr

/lib' '--with-freetype-dir=/usr/lib' '--enable-ftp'
'--enable-memory-limit' '--enable-safe-mode' '--enable-bcmath'
'--enable-calendar' '--enable-ctype' '--with-ftp' '--with-bz2'

'--enable-inline-optimization' '--with-iconv'

CC: gcc

CFLAGS: -I/usr/include -g -O2

CPPFLAGS:

CXX:

CXXFLAGS:

INCLUDES: -I/usr/include/libxml2
-I/home/hpwp/Documents/php-5.2.4/ext/date/lib -I/usr/include/freetype2
-I/home/hpwp/Documents/php-5.2.4/ext/mbstring/oniguruma -I/home/hpwp/Do

cuments/php-5.2.4/ext/mbstring/libmbfl
-I/home/hpwp/Documents/php-5.2.4/ext/mbstring/libmbfl/mbfl
-I/usr/include/oracle/10.2.0.3/client

LDFLAGS: -L/usr/lib -Wl,-rpath,/usr/lib/oracle/10.2.0.3/client/lib/
-L/usr/lib/oracle/10.2.0.3/client/lib/

LIBS: -lcrypt -lrt -lfreetype -lpng -lz -ljpeg -lbz2 -lz -lresolv
-lm -ldl -lnsl -lxml2 -lz -lm -lxml2 -lz -lm -lclntsh -lxml2 -lz -lm
-lcrypt

DLIBS:

SAPI: apache2handler

PHP_RPATHS: /usr/lib/oracle/10.2.0.3/client/lib/

uname -a: Linux hpwphou05 2.6.13-15.16-default #1 Fri Jun 8 15:35:39
UTC 2007 i686 i686 i386 GNU/Linux



gcc -o conftest -I/usr/include -g -O2 -L/usr/lib
-Wl,-rpath,/usr/lib/oracle/10.2.0.3/client/lib/
-L/usr/lib/oracle/10.2.0.3/client/lib/ conftest.c -lcrypt -lrt
-lfreetype -lpng

-lz -ljpeg -lbz2 -lz -lresolv -lm -ldl -lnsl -lxml2 -lz -lm -lxml2 -lz
-lm -lclntsh -lxml2 -lz -lm -lcrypt 1>&5

conftest.c: In function 'main':

conftest.c:3: warning: incompatible implicit declaration of built-in
function 'exit'

.../conftest: error while loading shared libraries: libnnz10.so: cannot
open shared object file: No such file or directory









I tried this two three times and also once performed 'make'. And then
'make install' which failed.



Kindly help me, as now my server is unable to run both PHP+APACHE too.



Regards,

Nikhil Porwal




Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com