in reply to Re: issue with DBD::Oracle module
in thread issue with DBD::Oracle module

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

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

    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 ??

        Any ideas ??

        figure it out :)

        you managed to compile DBD-Oracle which means that file was present

        I don't know why its not in your path anymore or why you can't find it, but solution is simple, find file, add path to LD_LIBRARY_PATH, make sure LD_LIBRARY_PATH is set...

        regular sameness

        Also use code tags for code/data, its basic formatting