Re: [PHP-INSTALL] PHP 5.6.1 and OCI8 Extension question
[email protected] (christopher jones) Fri, 21 Nov 2014 08:49:50 -0800
| Newsgroups | php.install |
|---|---|
| Organization | Oracle Corporation |
| Message-ID | <[email protected]> |
On 11/21/14, 6:16 AM, Jorge F. Hernandez wrote: > Hey guys, > > I just compiled oci8 and pdo_oci for *PHP 5.6.1* to add to my PHP because it didn't come with my linux distro, but I'm getting this: > > PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php5/extensions/oci8.so' - libnnz11.so: cannot open shared object file: No such > file or directory in Unknown on line 0 > > PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php5/extensions/pdo_oci.so' - libnnz11.so: cannot open shared object file: No > such file or directory in Unknown on line 0 > > I compiled it using the libraries from Oracle 11g Express, which is what I have on my Linux. > > What can cause that? > > Thanks, Try setting LD_LIBRARY_PATH in the appropriates places e.g. /etc/sysconfig/httpd or /etc/apache2/envvars See "Setting the Oracle Environment for PHP on Linux" on p 77 in See http://www.oracle.com/technetwork/topics/php/underground-php-oracle-manual-098250.html -- [email protected] http://twitter.com/ghrd