Operating System - HP-UX
1836752 Members
2577 Online
110109 Solutions
New Discussion

Unable to load dynamic library

 
jcmcdevitt
Occasional Advisor

Unable to load dynamic library

I am trying to enable the Oracle extension for PHP. I am receiving:

PHP Warning: PHP Startup: Unable to load dynamic library '/opt/hpws/apache/php/lib/php/extensions/oci8.sl' - Unable to find library 'libclntsh.so.9.0'. in Unknown on line 0


The file exists under:
/acg/esm/dev/opt/OV/lib/hpux32/libclntsh.so.9.0

I have my SHLIB_PATH set to:
/opt/hpws/apache/lib:/opt/hpws/apache/lib/LDAP:/acg/esm/dev/opt/OV/lib/hpux32:/opt/OV/lib:/lib32:/u01/app/oracle/lib32/:/u01/app/oracle/lib:/opt/OV/lib

ORACLE_HOME:
/u01/app/oracle

4 REPLIES 4
Robert-Jan Goossens
Honored Contributor

Re: Unable to load dynamic library

jcmcdevitt
Occasional Advisor

Re: Unable to load dynamic library

Thanks. I have already found / tried this. Any other ideas?
Dennis Handly
Acclaimed Contributor

Re: Unable to load dynamic library

>I have already found / tried this. Any other ideas?

You could try using tusc to read dld's mind to see what it is doing.
Have you check the permissions on every element in the path:
acg/esm/dev/opt/OV/lib/hpux32/libclntsh.so.9.0
jcmcdevitt
Occasional Advisor

Re: Unable to load dynamic library

OK,here is the deal.

In the Document titled: â HP-UX Apache-based Web Sever v3.01 powered by Apache Tomcat Webminâ it notes under the HP-UX Apache-based Web server -> PHP Extensions that Oracle (oci8.sl) client side libraries version 10i or later are supported.

The only problem is there was never a 10i release of Oracle. (The Oracle just smiled when I asked him about 10i...) There was only a 9i release of Oracle.

So, the oci8.sl was complied with the 9i client libraries. (You can not use 10 or 11â ¦)

Once I downloaded the 9i release (the client was hidden in the full release so get all the packages) and install the 9i client into a separate directory it worked. Please note that I changed the ORACLE_HOME in apachectl to point to my 9i client install.

Now, on to figure out why gd.sl wonâ t loadâ ¦

;)