Hi Jerôme,

 

Thanks for looking into it, actually I am using "Linux 2.6.13-15.16-default #1 
i686 i686 i386 GNU/Linux". As I have installed only oracle client, I have 
ORACLE_HOME, LD_LIBRARY_PATH and TNS_ADMIN already setup in env for that. 

 

My PHP + Apache configuration was working fine b4, with the same configure 
parameter, and I only added oci8 in to the same to re-configure and install. 
But in re-configuration it gave the below warnings and also after the make, its 
is not installing now! So now my Apache + PHP configuration is also not working.

 

Any help will be highly appreciated!

 

Thanks!

 

Regards,

Nikhil Porwal

________________________________

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Thursday, December 13, 2007 12:35 PM
To: Porwal, Nikhil; php-install@lists.php.net
Subject: [PHP-INSTALL] ./configure error -- oci8

 


Hello nikhil, 

type ./configure --help to check if your configure options are in it. 

Also what unix/linux version are you using to install your apache/php ENV ? 

Make sure the oracle environment variables are set 

ORACLE_HOME, ORACLE_SID, LD_PRELOAD, LD_LIBRARY_PATH, NLS_LANG, ORA_NLS33, 

These must be known for the user you will run apache with, in most cases, the 
www user, the www user should be added to the oracle group 'eg: oinstall' 
(depends your config). i usually start apache with root user after loading the 
oracle user profile 

Finally, i'd sugest you read the help output of the configure and choose wisely 
what you really need 


Jerôme Kaluza
Service du Sang
Service Informatique
Croix-Rouge de Belgique
rue de Stalle 96 - 5e étage
B-1180 Bruxelles
Tél. : + 32 (0)2 371 35 27
Fax : + 32 (0)2 371 35 23
[EMAIL PROTECTED]
http://www.transfusion.be

P.S.: Le temps de lire ce mail, 1 personne aura eu besoin d'une transfusion en 
Belgique pour survivre. Alors, n'oublions pas : une vie est irremplaçable, pas 
le sang ! Plus d'infos, sur http://www.transfusion.be. 



"Porwal, Nikhil" <[EMAIL PROTECTED]> 

12/12/2007 22:23 

A

<php-install@lists.php.net> 

cc

"Porwal, Nikhil" <[EMAIL PROTECTED]> 

Objet

[PHP-INSTALL] ./configure error -- oci8

 

 

 




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/pub/notes/technote_php_instant.html 
<http://www.oracle.com/technology/pub/notes/technote_php_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 
  

Reply via email to