php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #29301 Failed dependencies: libclntsh.so.9.0 is needed by php-oci8-4.3
Submitted: 2004-07-21 15:32 UTC Modified: 2004-07-21 16:49 UTC
From: parixit at rci dot rutgers dot edu Assigned:
Status: Not a bug Package: OCI8 related
PHP Version: Irrelevant OS: Redhat Linux AS 3.0
Private report: No CVE-ID: None
 [2004-07-21 15:32 UTC] parixit at rci dot rutgers dot edu
Description:
------------
I am getting a Failed dependencies: libclntsh.so.9.0 is needed by php-oci8-4.3.2-11.ent error  I am rebuilding the php-4.3.2-11.ent.src.rpm  When rebuilding php everything works fine and I don't get any failed dependencies. The rebuild makes the following RPMS:

php-4.3.2-11.ent.i386.rpm            php-mysql-4.3.2-11.ent.i386.rpm
php-debuginfo-4.3.2-11.ent.i386.rpm  php-oci8-4.3.2-11.ent.i386.rpm
php-devel-4.3.2-11.ent.i386.rpm      php-odbc-4.3.2-11.ent.i386.rpm
php-imap-4.3.2-11.ent.i386.rpm       php-pgsql-4.3.2-11.ent.i386.rpm
php-ldap-4.3.2-11.ent.i386.rpm

The only thing I have changed in the php.spec file is added the ORACLE_HOME directory.

All of them install completely fine, except the php-oci8-4.3.2-11.ent.i386.rpm

Thank you in advance for your help
 



Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-07-21 15:35 UTC] tony2001@php.net
Why exactly is this a PHP bug if PHP has nothing to do with RPMs ?
 [2004-07-21 15:47 UTC] parixit at rci dot rutgers dot edu
I am new to php, linux. I did not know php has nothing to with RPMS.  Do you have any suggestions for my problem?
 [2004-07-21 15:53 UTC] tony2001@php.net
Perhaps you just don't have Oracle Client installed and this message tells you about that.
And I'm not sure if the RPM should require libcntsh.so at all, 'cos this lib is never installed through RPM system.
 [2004-07-21 15:56 UTC] gschlossnagle@php.net
You are missing the Oracle client libraries, which is 
where the library you are needing resides.  PHP does not 
provide this.  I assume you would get this from Oracle 
as part of their client install.
 [2004-07-21 15:58 UTC] parixit at rci dot rutgers dot edu
Thank you all for the fast replies.  I am *Very* new to this.  I do have  the oracle 9i client installed.  And I have that file it is located at: /u01/app/oracle/9i/lib/libclntsh.so.9.0
 [2004-07-21 16:03 UTC] tony2001@php.net
Does ldconfig know about it ?
`ldconfig -p | grep clntsh` ?
If it doesn't - add /u01/app/oracle/9i/lib/ to the /etc/ld.so.conf file and run `ldconfig`.
 [2004-07-21 16:10 UTC] parixit at rci dot rutgers dot edu
Yup.  I read on this board that I needed to do that.
This is what I get when I run the command you mentioned

ldconfig -p | grep clntsh

        libclntsh.so.9.0 (libc6) => /u01/app/oracle/9i/lib/libclntsh.so.9.0
        libclntsh.so (libc6) => /u01/app/oracle/9i/lib/libclntsh.so

in my ld.so.conf file i do have:
/u01/app/oracle/9i/lib

though when I run ldconfig, I get the following:

ldconfig: /u01/app/oracle/9i/lib/libnk59.so is not a symbolic link
 
ldconfig: /u01/app/oracle/9i/lib/libnrad9.so is not a symbolic link
 [2004-07-21 16:12 UTC] parixit at rci dot rutgers dot edu
Yup.  I read on this board that I needed to do that.
This is what I get when I run the command you mentioned

ldconfig -p | grep clntsh

        libclntsh.so.9.0 (libc6) => /u01/app/oracle/9i/lib/libclntsh.so.9.0
        libclntsh.so (libc6) => /u01/app/oracle/9i/lib/libclntsh.so

in my ld.so.conf file i do have:
/u01/app/oracle/9i/lib

though when I run ldconfig, I get the following:

ldconfig: /u01/app/oracle/9i/lib/libnk59.so is not a symbolic link
 
ldconfig: /u01/app/oracle/9i/lib/libnrad9.so is not a symbolic link
 [2004-07-21 16:23 UTC] tony2001@php.net
Than try to install the rpm with --nodeps, it seems to me that rpm system just doesn't know that OCI8 libs are already installed.
 [2004-07-21 16:49 UTC] parixit at rci dot rutgers dot edu
It Worked!  Thank you so much!!!

Here is what my phpinfo() looks like:

http://hsgware7.rutgers.edu/~parixit/email_queries/

oci8
OCI8 Support 	enabled
Revision 	$Revision: 1.183.2.5 $
Oracle Version 	9.2
Compile-time ORACLE_HOME 	/u01/app/oracle/9i
Libraries Used 	-Wl,-rpath,/u01/app/oracle/9i/lib -L/u01/app/oracle/9i/lib -lclntsh

I now have to set my environment variables correct?
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue May 07 05:01:30 2024 UTC