in reply to issue with DBD::Oracle module

?What is output of ldd -v /opt/perl/ActivePerl-5.20/lib/auto/DBD/Oracle/Oracle.so

Replies are listed 'Best First'.
Re^2: issue with DBD::Oracle module
by Anonymous Monk on Sep 27, 2015 at 12:14 UTC

    following is the o/p.

    +++++++++++++++++++++++++++++++ ldd -v /opt/perl/ActivePerl-5.20/lib/auto/DBD/Oracle/Oracle.so linux-vdso.so.1 => (0x00007fffd4f00000) libclntsh.so.12.1 => not found libc.so.6 => /lib64/libc.so.6 (0x00007f9d49947000) /lib64/ld-linux-x86-64.so.2 (0x00007f9d49f4e000) Version information: /opt/perl/ActivePerl-5.20/lib/auto/DBD/Oracle/Oracle.so: libc.so.6 (GLIBC_2.4) => /lib64/libc.so.6 libc.so.6 (GLIBC_2.14) => /lib64/libc.so.6 libc.so.6 (GLIBC_2.3.4) => /lib64/libc.so.6 libc.so.6 (GLIBC_2.2.5) => /lib64/libc.so.6 /lib64/libc.so.6: ld-linux-x86-64.so.2 (GLIBC_2.3) => /lib64/ld-linux-x8 +6-64.so.2 ld-linux-x86-64.so.2 (GLIBC_PRIVATE) => /lib64/ld-linu +x-x86-64.so.2 +++++++++++++++++++++++++++++++++

    As suspected the libclntsh.so.12.1 is missing from the libraries.

    Regards, Amitesh Sahay

      As suspected the libclntsh.so.12.1 is missing from the libraries.

      So where is that file? What does ldd......libclntsh.so.12.1 return?

        from the ldd output that you can see above. libclntsh.so.12.1 is not found on the machine libclntsh.so.12.1 => not found I am not sure if I can find the library in the OS CD, as it seems to be Oracle specific library file. Please let me know how to get the file.

        Regards, Amitesh

        from the ldd o/p it is clear that the library is missing

        "LD_LIBRARY_PATH=/u01/app/oracle/product/11.2.0/xe/lib"

        Instead I could see another version of that lib.

        ll | grep -i libclntsh.so.11.1 lrwxrwxrwx. 1 oracle dba libclntsh.so -> libclntsh.so.11. -rwxr-xr-x. 1 oracle dba libclntsh.so.11.1.

        Since this seems to be Oracle specific library, I am not sure if it would be present in the OS CD.

        Any ideas ??