RE: ./configure error -- oci8

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



Hi,

 

Library is present in the Oracle Client library directory! But after the make command, make test command gives the below error :

 

/abc/xyz/Documents/php-5.2.4/sapi/cli/php: error while loading shared libraries: libnnz10.so: cannot open shared object file: No such file or directory

/abc/xyz/Documents/php-5.2.4/sapi/cli/php: error while loading shared libraries: libnnz10.so: cannot open shared object file: No such file or directory

 

 

Do I need to copy this library to some folder or other? And also I am not sure if package manager was used to install php with APACHE. How to check that, and if it is yes do I need to manually add it then?

 

 

Regards,

Nikhil Porwal


From: j.kaluza@xxxxxxxxxxxxxxxxxxxxxxx [mailto:j.kaluza@xxxxxxxxxxxxxxxxxxxxxxx]
Sent: Thursday, December 13, 2007 2:51 PM
To: Porwal, Nikhil
Cc: php-install@xxxxxxxxxxxxx
Subject: RE: ./configure error -- oci8

 


check if you have libnnz10.so

i had a similar problem but i am using the database software on the same machine, but php was installed with a package manager so i had to add the oci8 support manually afterwards, i used this paper to guide myself :   http://en.opensuse.org/Howto_build_oci8_extension_module_for_php

hope that helps you out :)




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
j.kaluza@xxxxxxxxxxxxxxxxxxxxxxx
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" <nikhil.porwal@xxxxxx> a écrit sur 13/12/2007 09:59:49 :

> 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: j.kaluza@xxxxxxxxxxxxxxxxxxxxxxx [mailto:j.kaluza@redcross-
> transfusion.be]
> Sent: Thursday, December 13, 2007 12:35 PM
> To: Porwal, Nikhil; php-install@xxxxxxxxxxxxx
> Subject: ./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
> j.kaluza@xxxxxxxxxxxxxxxxxxxxxxx
> 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" <nikhil.porwal@xxxxxx>

> 12/12/2007 22:23
>
> A

>
> <php-install@xxxxxxxxxxxxx>

>
> cc

>
> "Porwal, Nikhil" <nikhil.porwal@xxxxxx>

>
> Objet

>
> ./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 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
> 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
>  


[Index of Archives]     [PHP Users]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [Postgresql]     [PHP Books]     [PHP Databases]     [PHP SOAP]
  Powered by Linux