#31794 [Bgs]: Unable to build Oracle oci8.so module

From: Date: Tue, 29 Mar 2005 13:50:10 +0000
Subject: #31794 [Bgs]: Unable to build Oracle oci8.so module
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-75981@lists.php.net to get a copy of this message
 ID:               31794
 User updated by:  mp at ecetra dot com
 Reported By:      mp at ecetra dot com
 Status:           Bogus
 Bug Type:         *Compile Issues
 Operating System: Linux RH EL ES 3
 PHP Version:      4CVS-2005-02-01 (stable)
 New Comment:

hello,

i am not sure if you are interested in this information, but i was able
to compile newest snpashot on the same system without changing anything.


whatever you did or not, thanks you!
-michael


Previous Comments:
------------------------------------------------------------------------

[2005-02-03 10:57:08] mp at ecetra dot com

so i have no choice than wait till someone else has the same problem.

just for your information:
- adding oracle libs path to ld.so.conf is completely senseless and do
not change anything cause LD_LIBRARY_PATH and ORACLE_HOME are set by me
first during compilation process and then in the apache startup
environment
- i compiled oci8 support into 4CVS version without problem using
Oracle Instant Client (using according parameter)

so if someone (not from PHP) is able to compile oci8 support into 4CVS
version with --with-oci8 option, please tell. 

Thank you all for your help!

Kr,
-michael

------------------------------------------------------------------------

[2005-02-02 17:12:50] sniper@php.net

Nothing has changed in PHP regarding this. You actually should have the
path to the oracle libraries in /etc/ld.so.conf (add it there and then
run ldconfig).

Not PHP bug -> Bogus.


------------------------------------------------------------------------

[2005-02-02 10:41:43] mp at ecetra dot com

Ok, it is not there:

root@losinj:/home/mp/BUILD/php4/modules# ls
curl.so  ldap.so  mcrypt.so  mhash.so  mysql.so  snmp.so

> as far as I can see you're having some problems with OCI libraries.
> fix them and try again.

why do think so? i can compile 4.3.10 without ANY problems on the same
system, at the same time, without setting any environment variables as
is told i my previous comment. 

Kr,
-michael

------------------------------------------------------------------------

[2005-02-02 10:25:02] tony2001@php.net

>Tried to do it manually - same result, no oci8.so is 
>created by make install. 
created where? and why make install should create it?
it should appear in modules/ after make.

>error while loading shared libraries:
>libclntsh.so.9.0: cannot open shared object file: No such >file or
directory
as far as I can see you're having some problems with OCI libraries.
fix them and try again.

------------------------------------------------------------------------

[2005-02-02 09:53:57] mp at ecetra dot com

Tried to do it manually - same result, no oci8.so is created by make
install. There are not errors during compilation process, but one thing
has changed since 4.3.10 (final): LD_LIBRARY_PATH
(=/opt/oracle/product/9.2.0/lib) must be set now, otherwise i get this
during make install:

root@losinj:/home/mp/BUILD/php4# make install
Installing PHP SAPI module:       apache2filter
/usr/lib/httpd/build/instdso.sh
SH_LIBTOOL='/usr/lib/httpd/build/libtool' libphp4.la
/usr/lib/httpd/modules
/usr/lib/httpd/build/libtool --mode=install cp libphp4.la
/usr/lib/httpd/modules/
cp .libs/libphp4.so /usr/lib/httpd/modules/libphp4.so
cp .libs/libphp4.lai /usr/lib/httpd/modules/libphp4.la
libtool: install: warning: remember to run `libtool --finish
/home/mp/rpmbuild/BUILD/php-4.3.10snap/libs'
chmod 755 /usr/lib/httpd/modules/libphp4.so
[activating module `php4' in /etc/httpd/conf/httpd.conf]
Installing PHP CLI binary:        /opt/phptest/bin/
Installing PHP CLI man page:      /opt/phptest/man/man1/
Installing shared extensions:    
/opt/phptest/lib/php/extensions/no-debug-non-zts-20020429/
Installing PEAR environment:      /opt/phptest/pear/
/home/mp/BUILD/php4/sapi/cli/php: error while loading shared libraries:
libclntsh.so.9.0: cannot open shared object file: No such file or
directory
make[1]: *** [install-pear-installer] Error 127
make: *** [install-pear] Error 2

Apache version is 2.0.50
System: Red Hat Enterprise Linux ES release 3 (Taroon Update 1)

Kr,
-michael

------------------------------------------------------------------------

The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
    http://bugs.php.net/31794

-- 
Edit this bug report at http://bugs.php.net/?id=31794&edit=1


Thread (8 messages)

« previous php.bugs (#75981) next »