Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: Not able to install DBD::Oracle on sun solaris.

by marto (Cardinal)
on Dec 11, 2014 at 09:18 UTC ( [id://1110019]=note: print w/replies, xml ) Need Help??


in reply to Not able to install DBD::Oracle on sun solaris.

Firstly, stop using the system perl (Perl that ships with Solaris). It's ancient (mid 2004), it's used by the OS so you want to avoid changing it at all (very weird things can happen), and it's trivial to install your own modern perl version anywhere elseon the system.

  • Comment on Re: Not able to install DBD::Oracle on sun solaris.

Replies are listed 'Best First'.
Re^2: Not able to install DBD::Oracle on sun solaris.
by Ankur_kuls (Sexton) on Dec 12, 2014 at 06:35 UTC

    Thanks for reply.. I have installed perl on windows & linux machines but could you please guide me.. how do I do the same on solaris 5.10 machine>

        Thanks I am now able to install perl in my custom directory..which is /cac/customperl/bin/perl/..Now when I am trying to install DBD::Oracle 1.74 using below commands.

        /cac/customperl/bin/perl Makefile.PL make make test

        at make test It is throwing the below error

        t/000-report-versions-tiny.t .. ok t/00versions.t ................ Can't load '/scripts/DBD-Oracle-1.74/b +lib/arch/auto/DBD/Oracle/Oracle.so' for module DBD::Oracle: ld.so.1: +perl: fatal: /opt/oracle/product/11g/db_1/lib/libclntsh.so.11.1: wron +g ELF class: ELFCLASS64 at /cac/customperl/lib/5.20.1/sun4-solaris/Dy +naLoader.pm line 193. at t/00versions.t line 10. Compilation failed in require at t/00versions.t line 10. BEGIN failed--compilation aborted at t/00versions.t line 10. # Looks like your test exited with 2 before it could output anything. t/00versions.t ................ Dubious, test returned 2 (wstat 512, 0 +x200) Failed 2/2 subtests t/01base.t .................... 1/6 # Failed test 'install_driver' # at t/01base.t line 24. # got: 'install_driver(Oracle) failed: Can't load '/scripts/D +BD-Oracle-1.74/blib/arch/auto/DBD/Oracle/Oracle.so' for module DBD::O +racle: ld.so.1: perl: fatal: /opt/oracle/product/11g/db_1/lib/libclnt +sh.so.11.1: wrong ELF class: ELFCLASS64 at /cac/customperl/lib/5.20.1 +/sun4-solaris/DynaLoader.pm line 193. # at (eval 11) line 3. # Compilation failed in require at (eval 11) line 3. # Perhaps a required shared library or dll isn't installed where expec +ted # at t/01base.t line 21. # ' # expected: '' # Failed to load Oracle extension and/or shared libraries # Looks like you failed 1 test of 6. t/01base.t .................... Dubious, test returned 1 (wstat 256, 0 +x100) Failed 1/6 subtests (less 2 skipped subtests: 3 okay) t/10general.t ................. Can't load '/scripts/DBD-Oracle-1.74/b +lib/arch/auto/DBD/Oracle/Oracle.so' for module DBD::Oracle: ld.so.1: +perl: fatal: /opt/oracle/product/11g/db_1/lib/libclntsh.so.11.1: wron +g ELF class: ELFCLASS64 at /cac/customperl/lib/5.20.1/sun4-solaris/Dy +naLoader.pm line 193. at t/10general.t line 8. Compilation failed in require at t/10general.t line 8. BEGIN failed--compilation aborted at t/10general.t line 8. t/10general.t ................. Dubious, test returned 2 (wstat 512, 0 +x200) No subtests run t/12impdata.t ................. Can't load '/scripts/DBD-Oracle-1.74/b +lib/arch/auto/DBD/Oracle/Oracle.so' for module DBD::Oracle: ld.so.1: +perl: fatal: /opt/oracle/product/11g/db_1/lib/libclntsh.so.11.1: wron +g ELF class: ELFCLASS64 at /cac/customperl/lib/5.20.1/sun4-solaris/Dy +naLoader.pm line 193. at t/nchar_test_lib.pl line 6. Compilation failed in require at t/nchar_test_lib.pl line 6. BEGIN failed--compilation aborted at t/nchar_test_lib.pl line 6. Compilation failed in require at t/12impdata.t line 25. t/12impdata.t ................. Dubious, test returned 2 (wstat 512, 0 +x200) No subtests run t/14threads.t ................. skipped: this solaris perl 5.020001 no +t configured to support iThreads t/15nls.t ..................... Can't load '/scripts/DBD-Oracle-1.74/b +lib/arch/auto/DBD/Oracle/Oracle.so' for module DBD::Oracle: ld.so.1: +perl: fatal: /opt/oracle/product/11g/db_1/lib/libclntsh.so.11.1: wron +g ELF class: ELFCLASS64 at /cac/customperl/lib/5.20.1/sun4-solaris/Dy +naLoader.pm line 193. at t/nchar_test_lib.pl line 6. Compilation failed in require at t/nchar_test_lib.pl line 6. BEGIN failed--compilation aborted at t/nchar_test_lib.pl line 6. Compilation failed in require at t/15nls.t line 9. t/15nls.t ..................... Dubious, test returned 2 (wstat 512, 0 +x200) No subtests run t/20select.t .................. Can't load '/scripts/DBD-Oracle-1.74/b +lib/arch/auto/DBD/Oracle/Oracle.so' for module DBD::Oracle: ld.so.1: +perl: fatal: /opt/oracle/product/11g/db_1/lib/libclntsh.so.11.1: wron +g ELF class: ELFCLASS64 at /cac/customperl/lib/5.20.1/sun4-solaris/Dy +naLoader.pm line 193. at t/20select.t line 4. Compilation failed in require at t/20select.t line 4. BEGIN failed--compilation aborted at t/20select.t line 4. t/20select.t .................. Dubious, test returned 2 (wstat 512, 0 +x200) No subtests run t/21nchar.t ................... Can't load '/scripts/DBD-Oracle-1.74/b +lib/arch/auto/DBD/Oracle/Oracle.so' for module DBD::Oracle: ld.so.1: +perl: fatal: /opt/oracle/product/11g/db_1/lib/libclntsh.so.11.1: wron +g ELF class: ELFCLASS64 at /cac/customperl/lib/5.20.1/sun4-solaris/Dy +naLoader.pm line 193. at t/21nchar.t line 12. Compilation failed in require at t/21nchar.t line 12. BEGIN failed--compilation aborted at t/21nchar.t line 12. t/21nchar.t ................... Dubious, test returned 2 (wstat 512, 0 +x200) No subtests run t/22nchar_al32utf8.t .......... Can't load '/scripts/DBD-Oracle-1.74/b +lib/arch/auto/DBD/Oracle/Oracle.so' for module DBD::Oracle: ld.so.1: +perl: fatal: /opt/oracle/product/11g/db_1/lib/libclntsh.so.11.1: wron +g ELF class: ELFCLASS64 at /cac/customperl/lib/5.20.1/sun4-solaris/Dy +naLoader.pm line 193. at t/22nchar_al32utf8.t line 9. Compilation failed in require at t/22nchar_al32utf8.t line 9. BEGIN failed--compilation aborted at t/22nchar_al32utf8.t line 9. t/22nchar_al32utf8.t .......... Dubious, test returned 2 (wstat 512, 0 +x200) No subtests run t/22nchar_utf8.t .............. Can't load '/scripts/DBD-Oracle-1.74/b +lib/arch/auto/DBD/Oracle/Oracle.so' for module DBD::Oracle: ld.so.1: +perl: fatal: /opt/oracle/product/11g/db_1/lib/libclntsh.so.11.1: wron +g ELF class: ELFCLASS64 at /cac/customperl/lib/5.20.1/sun4-solaris/Dy +naLoader.pm line 193. at t/22nchar_utf8.t line 9. Compilation failed in require at t/22nchar_utf8.t line 9. BEGIN failed--compilation aborted at t/22nchar_utf8.t line 9. t/22nchar_utf8.t .............. Dubious, test returned 2 (wstat 512, 0 +x200) No subtests run t/23wide_db.t ................. Can't load '/scripts/DBD-Oracle-1.74/b +lib/arch/auto/DBD/Oracle/Oracle.so' for module DBD::Oracle: ld.so.1: +perl: fatal: /opt/oracle/product/11g/db_1/lib/libclntsh.so.11.1: wron +g ELF class: ELFCLASS64 at /cac/customperl/lib/5.20.1/sun4-solaris/Dy +naLoader.pm line 193. at t/23wide_db.t line 9. Compilation failed in require at t/23wide_db.t line 9. BEGIN failed--compilation aborted at t/23wide_db.t line 9. etc etc

        not able to understand this error. could anyone please help?

        thanks Corion..not able to reply on your answer... my perl and sqlplus, both are 64 bit...also I don't have much Idea on this...could you please help me understand how to set LD_LIBRARY_PATH... my perl is 64 bit..

        This is perl, v5.8.4 built for sun4-solaris-64int (with 37 registered patches, see perl -V for more detail) sqlplus: file /opt/oracle/product/11g/db_1/bin/sqlplus /opt/oracle/product/11g/db_1/bin/sqlplus: ELF 64-bit MSB executa +ble SPARCV9 Version 1, dynamically linked, not stripped file /scripts/DBD-Oracle-1.74/blib/arch/auto/DBD/Oracle/Oracle.so /scripts/DBD-Oracle-1.74/blib/arch/auto/DBD/Oracle/Oracle.so: ELF 32 +-bit MSB dynamic lib SPARC Version 1, dynamically linked, not strippe +d, no debugging information available file /opt/oracle/product/11g/db_1/lib/libclntsh.so.11.1 /opt/oracle/product/11g/db_1/lib/libclntsh.so.11.1: ELF 64-bit MSB + dynamic lib SPARCV9 Version 1, dynamically linked, not stripped

        Hi Marto... I am sorry for the confusion created.. Actually I have been trying to install this module for last few days without success and got completely lost and confused.. below is the details of my custom perl...

        # /cac/customperl/bin/perl -V Summary of my perl5 (revision 5 version 20 subversion 1) configuration +: Platform: osname=solaris, osvers=2.10, archname=sun4-solaris uname='sunos apvs2a 5.10 generic_147440-25 sun4v sparc sunw,netra- +t2000 ' config_args='prefix=/cac/customperl' hint=recommended, useposix=true, d_sigaction=define useithreads=undef, usemultiplicity=undef use64bitint=undef, use64bitall=undef, uselongdouble=undef usemymalloc=n, bincompat5005=undef Compiler: cc='gcc', ccflags ='-fno-strict-aliasing -pipe -D_LARGEFILE_SOURCE + -D_FILE_OFFSET_BITS=64 -DPERL_USE_SAFE_PUTENV', optimize='-O', cppflags='-fno-strict-aliasing -pipe' ccversion='', gccversion='3.4.3 (csl-sol210-3_4-branch+sol_rpath)' +, gccosandvers='solaris2.10' intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=4321 d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=1 +6 ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', + lseeksize=8 alignbytes=8, prototype=define Linker and Libraries: ld='gcc', ldflags =' ' libpth=/usr/sfw/lib /usr/lib /usr/ccs/lib libs=-lsocket -lnsl -ldl -lm -lc perllibs=-lsocket -lnsl -ldl -lm -lc libc=/lib/libc.so, so=so, useshrplib=false, libperl=libperl.a gnulibc_version='' Dynamic Linking: dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags=' ' cccdlflags='-fPIC', lddlflags='-G' Characteristics of this binary (from libperl): Compile-time options: HAS_TIMES PERLIO_LAYERS PERL_DONT_CREATE_GVSV PERL_HASH_FUNC_ONE_AT_A_TIME_HARD PERL_MALLOC_ +WRAP PERL_NEW_COPY_ON_WRITE PERL_PRESERVE_IVUV PERL_USE_SAFE_PUTENV USE_LARGE_FILES USE_LOCAL +E USE_LOCALE_COLLATE USE_LOCALE_CTYPE USE_LOCALE_NUMERIC USE_PERLIO USE_PERL_ATOF Built under solaris Compiled at Dec 18 2014 13:00:16 @INC: /cac/customperl/lib/site_perl/5.20.1/sun4-solaris /cac/customperl/lib/site_perl/5.20.1 /cac/customperl/lib/5.20.1/sun4-solaris /cac/customperl/lib/5.20.1 also---- # echo $ORACLE_HOME /opt/oracle/product/11g/db_1 apex crs hs jdk + network oraInst.loc racg sqldeveloper + ucp assistants csmig install jlib + nls ord rdbms sqlj + uix bin css install.platform ldap + oc4j oui relnotes sqlplus + ultrasearch ccr ctx instantclient lib + ocm.rsp owb root.sh srvm + wwg cdata dbs instantclient32 lib32 + odbc owm root.sh.old sysman + xdk cfgtoollogs demo inventory log + olap perl root.sh.old.1 tg4ifmx clone diagnostics j2ee md + OPatch plsql root.sh.old.2 tg4ingr config emcli javavm mesg + opmn precomp scheduler tg4sybs cpu has jdbc mgw + oracore psu slax tg4tera .

        Apart from this I was searching for this issue and got this link. http://stackoverflow.com/questions/10953511/error-when-trying-to-install-dbdoracle-with-cpanm but the difference here is the that I have lib32 file in my $ORACLE_HOME instead of lib64. so would the re installation with below command resolve my issue...please help

         ./Configure -es prefix=/cac/customeperl -Dcc=gcc -Duse32bitall -Dusethreads

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1110019]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (3)
As of 2024-04-25 16:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found