Eugene.
--------------010705070306090804040108
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">On 13.08.2013 12:58, KAs Coenen wrote:<br>
</div>
<blockquote cite="mid:DUB116-W10024681697B9835A612759BA440@xxxxxxx"
type="cite">
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style>
<div dir="ltr">Hey,<br>
<br>
Instant client is installed under
(/opt/oracle/product/12.1.0/client). I tried to install oci8
with pecl but I get an error:<br>
<br>
# /usr/local/php5/bin/pecl install oci8<br>
No releases for package "pecl/oci8" exist<br>
install failed<br>
<br>
Installing from source also failed but I did try to install
2.0.0. I was able to compile it but ldd shows me some libs were
not found:<br>
<br>
root@zone-eu4# ldd oci8.so<br>
libclntsh.so.12.1 =>
/opt/oracle/product/12.1.0/client/libclntsh.so.12.1<br>
libc.so.1 => /lib/libc.so.1<br>
libgcc_s.so.1 => /usr/sfw/lib/libgcc_s.so.1<br>
libnnz12.so => (file not found)<br>
libons.so => (file not found)<br>
libkstat.so.1 => /lib/libkstat.so.1<br>
libnsl.so.1 => /lib/libnsl.so.1<br>
libsocket.so.1 => /lib/libsocket.so.1<br>
libresolv.so.2 => /lib/libresolv.so.2<br>
libgen.so.1 => /lib/libgen.so.1<br>
libdl.so.1 => /lib/libdl.so.1<br>
libsched.so.1 => /usr/lib/libsched.so.1<br>
librt.so.1 => /lib/librt.so.1<br>
libaio.so.1 => /lib/libaio.so.1<br>
libpool.so.1 => /usr/lib/libpool.so.1<br>
libadm.so.1 => /lib/libadm.so.1<br>
libefi.so.1 => /lib/libefi.so.1<br>
libm.so.2 => /lib/libm.so.2<br>
libclntshcore.so.12.1 => (file not found)<br>
libmp.so.2 => /lib/libmp.so.2<br>
libmd.so.1 => /lib/libmd.so.1<br>
libscf.so.1 => /lib/libscf.so.1<br>
libxml2.so.2 => /usr/lib/libxml2.so.2<br>
libnvpair.so.1 => /lib/libnvpair.so.1<br>
libexacct.so.1 => /usr/lib/libexacct.so.1<br>
libuuid.so.1 => /lib/libuuid.so.1<br>
libdoor.so.1 => /lib/libdoor.so.1<br>
libuutil.so.1 => /lib/libuutil.so.1<br>
libpthread.so.1 => /lib/libpthread.so.1<br>
libz.so.1 => /usr/lib/libz.so.1<br>
</div>
</blockquote>
These libraries are usually located on $ORACLE_HOME/lib.<br>
<blockquote cite="mid:DUB116-W10024681697B9835A612759BA440@xxxxxxx"
type="cite">
<div dir="ltr"><br>
Although libnnz12 is found in oracle instant client path:<br>
<br>
root@zone-eu4# find / -name libnnz12.so<br>
/usr/local/lib/libnnz12.so<br>
/opt/oracle/product/12.1.0/client/libnnz12.so<br>
<br>
Its the same for libclntshcore.so.12.1. When restarting apache I
get this error (which is normal I guess):<br>
<br>
[12-Aug-2013 09:50:09 UTC] PHP Warning: PHP Startup: Unable to
load dynamic library
'/usr/local/php5/lib/php/extensions/no-debug-non-zts-20121212/oci8.so'
- ld.so.1: php: fatal: libnnz12.so: open failed: No such file or
directory in Unknown on line 0<br>
</div>
</blockquote>
Well... you can add the directory where libnnz12.so is located to
the crle -64 library path, then rerun. A more easy way to check is
actually running 'php -m'. Although I should say that on my servers
$ORACLE_HOME/lib isn't added to system linker's path, and oci8 is
working just fine.<br>
<br>
From what I see I can also recommend you to try to build oci8 1.4.x
against oracle client 11g, because 12 is just out and there can be a
lots of difficulties with it. At least I use the 11g and oci8 1.4.x.
From what I know - oracle software is always backward-compatible, I
mean you can connect with older clients to a modern server (some
features will be probably unavailable, but the main functionality
will remain).<br>
<br>
Eugene.<br>
</body>
</html>
--------------010705070306090804040108--
[Index of Archives]
[PHP Users]
[PHP Home]
[PHP on Windows]
[Kernel Newbies]
[PHP Classes]
[Postgresql]
[PHP Books]
[PHP Databases]
[PHP SOAP]