[no subject]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



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>
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; libclntsh.so.12.1 =&gt;&nbsp;&nbsp;&nbsp;&nbsp;
        /opt/oracle/product/12.1.0/client/libclntsh.so.12.1<br>
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; libc.so.1 =&gt;&nbsp;&nbsp;&nbsp;&nbsp; /lib/libc.so.1<br>
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; libgcc_s.so.1 =&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; /usr/sfw/lib/libgcc_s.so.1<br>
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; libnnz12.so =&gt;&nbsp;&nbsp; (file not found)<br>
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; libons.so =&gt;&nbsp;&nbsp;&nbsp;&nbsp; (file not found)<br>
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; libkstat.so.1 =&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; /lib/libkstat.so.1<br>
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; libnsl.so.1 =&gt;&nbsp;&nbsp; /lib/libnsl.so.1<br>
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; libsocket.so.1 =&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; /lib/libsocket.so.1<br>
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; libresolv.so.2 =&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; /lib/libresolv.so.2<br>
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; libgen.so.1 =&gt;&nbsp;&nbsp; /lib/libgen.so.1<br>
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; libdl.so.1 =&gt;&nbsp;&nbsp;&nbsp; /lib/libdl.so.1<br>
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; libsched.so.1 =&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; /usr/lib/libsched.so.1<br>
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; librt.so.1 =&gt;&nbsp;&nbsp;&nbsp; /lib/librt.so.1<br>
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; libaio.so.1 =&gt;&nbsp;&nbsp; /lib/libaio.so.1<br>
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; libpool.so.1 =&gt;&nbsp; /usr/lib/libpool.so.1<br>
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; libadm.so.1 =&gt;&nbsp;&nbsp; /lib/libadm.so.1<br>
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; libefi.so.1 =&gt;&nbsp;&nbsp; /lib/libefi.so.1<br>
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; libm.so.2 =&gt;&nbsp;&nbsp;&nbsp;&nbsp; /lib/libm.so.2<br>
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; libclntshcore.so.12.1 =&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (file not found)<br>
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; libmp.so.2 =&gt;&nbsp;&nbsp;&nbsp; /lib/libmp.so.2<br>
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; libmd.so.1 =&gt;&nbsp;&nbsp;&nbsp; /lib/libmd.so.1<br>
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; libscf.so.1 =&gt;&nbsp;&nbsp; /lib/libscf.so.1<br>
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; libxml2.so.2 =&gt;&nbsp; /usr/lib/libxml2.so.2<br>
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; libnvpair.so.1 =&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; /lib/libnvpair.so.1<br>
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; libexacct.so.1 =&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; /usr/lib/libexacct.so.1<br>
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; libuuid.so.1 =&gt;&nbsp; /lib/libuuid.so.1<br>
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; libdoor.so.1 =&gt;&nbsp; /lib/libdoor.so.1<br>
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; libuutil.so.1 =&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; /lib/libuutil.so.1<br>
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; libpthread.so.1 =&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; /lib/libpthread.so.1<br>
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; libz.so.1 =&gt;&nbsp;&nbsp;&nbsp;&nbsp; /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:&nbsp; 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]
  Powered by Linux