help!!! getting error cannot locate loadable object in DBI

From: prog4ever (chanwern_at_yahoo.com)
Date: 05/27/04

  • Next message: Soo Hom: "RE: make problem"
    Date: 27 May 2004 10:20:24 -0700
    
    

    i have a simple perl script, that dies at the use DBI line. Below is
    the error i received, and i checked that DBI.pm is indeed in the path
    and i still get this error! i have also include the log file for the
    installation process after the script error message. Please advise!
    ==========================================================================
    Can't locate loadable object for module DBI in @INC (@INC contains:
    /opt/perl/lib/5.8.0/PA-RISC1.1-thread-multi /opt/perl/lib/5.8.0
    /opt/perl/lib/site_perl/5.8.0/PA-RISC1.1-thread-multi
    /opt/perl/lib/site_perl/5.8.0 /opt/perl/lib/site_perl .) at
    /opt/perl/lib/site_perl/5.8.0/PA-RISC1.1-thread-multi/DBI.pm line 259
    BEGIN failed--compilation aborted at
    /opt/perl/lib/site_perl/5.8.0/PA-RISC1.1-thread-multi/DBI.pm line 259.
    Compilation failed in require at ./talbackward.pl line 10.
    BEGIN failed--compilation aborted at ./talbackward.pl line 10 (#1)
        (F) You said to do (or require, or use) a file that couldn't be
        found. Perl looks for the file in all the locations mentioned in
    @INC,
        unless the file name included the full path to the file. Perhaps
    you
        need to set the PERL5LIB or PERL5OPT environment variable to say
    where
        the extra library is, or maybe the script needs to add the library
    name
        to @INC. Or maybe you just misspelled the name of the file. See
        perlfunc/require and lib.
        
    Uncaught exception from user code:
            Can't locate loadable object for module DBI in @INC (@INC contains:
    /opt/perl/lib/5.8.0/PA-RISC1.1-thread-multi /opt/perl/lib/5.8.0
    /opt/perl/lib/site_perl/5.8.0/PA-RISC1.1-thread-multi
    /opt/perl/lib/site_perl/5.8.0 /opt/perl/lib/site_perl .) at
    /opt/perl/lib/site_perl/5.8.0/PA-RISC1.1-thread-multi/DBI.pm line 259
    BEGIN failed--compilation aborted at
    /opt/perl/lib/site_perl/5.8.0/PA-RISC1.1-thread-multi/DBI.pm line 259.
    Compilation failed in require at ./talbackward.pl line 10.
    BEGIN failed--compilation aborted at ./talbackward.pl line 10.
    ===========================================================================
    ***************************************************************************
    This is the log file from the installation process. i'm running hp-ux
    11.11,perl 5.8.0 and installing dbi 1.42.

    Script started on Wed May 26 15:52:24 2004
    [root@oberon:/apps11/src/DBI-1.42]# perl Makefile.PL

    *** You are using a perl configured with threading enabled.
    *** You should be aware that using multiple threads is a
    *** not recommended for production environments.

    Creating extra DBI::PurePerl test: t/zz_01basics_pp.t
    Creating extra DBI::PurePerl test: t/zz_02dbidrv_pp.t
    Creating extra DBI::PurePerl test: t/zz_03handle_pp.t
    Creating extra DBI::PurePerl test: t/zz_04mods_pp.t
    Creating extra DBI::PurePerl test: t/zz_05thrclone_pp.t (use threads)
    Creating extra DBI::PurePerl test: t/zz_06attrs_pp.t
    Creating extra DBI::PurePerl test: t/zz_07kids_pp.t
    Creating extra DBI::PurePerl test: t/zz_08keeperr_pp.t
    Creating extra DBI::PurePerl test: t/zz_09trace_pp.t
    Creating extra DBI::PurePerl test: t/zz_10examp_pp.t
    Creating extra DBI::PurePerl test: t/zz_15array_pp.t
    Creating extra DBI::PurePerl test: t/zz_20meta_pp.t
    Creating extra DBI::PurePerl test: t/zz_30subclass_pp.t
    Creating extra DBI::PurePerl test: t/zz_40profile_pp.t
    Creating extra DBI::PurePerl test: t/zz_41prof_dump_pp.t
    Creating extra DBI::PurePerl test: t/zz_42prof_data_pp.t
    Creating extra DBI::PurePerl test: t/zz_50dbm_pp.t
    Creating extra DBI::PurePerl test: t/zz_60preparse_pp.t
    Creating extra DBI::PurePerl test: t/zz_80proxy_pp.t
    Checking if your kit is complete...
    Looks good

        I see you're using perl 5.008 on PA-RISC1.1-thread-multi, okay.
        Remember to actually *read* the README file!
        Use 'make' to build the software (dmake or nmake on Windows).
        Then 'make test' to execute self tests.
        Then 'make install' to install the DBI and then delete this
    working
        directory before unpacking and building any DBD::* drivers.

    Writing Makefile for DBI
    [root@oberon:/apps11/src/DBI-1.42]# make
            cp Changes blib/lib/DBI/Changes.pm
    cp dbivport.h blib/arch/auto/DBI/dbivport.h
    cp dbd_xsh.h blib/arch/auto/DBI/dbd_xsh.h
    cp lib/DBI/FAQ.pm blib/lib/DBI/FAQ.pm
    cp Driver_xst.h blib/arch/auto/DBI/Driver_xst.h
    cp lib/DBI/SQL/Nano.pm blib/lib/DBI/SQL/Nano.pm
    cp lib/DBD/DBM.pm blib/lib/DBD/DBM.pm
    cp DBI.pm blib/lib/DBI.pm
    cp lib/DBD/Proxy.pm blib/lib/DBD/Proxy.pm
    cp lib/DBI/Const/GetInfo/ANSI.pm blib/lib/DBI/Const/GetInfo/ANSI.pm
    cp DBIXS.h blib/arch/auto/DBI/DBIXS.h
    cp lib/DBI/Const/GetInfoReturn.pm blib/lib/DBI/Const/GetInfoReturn.pm
    cp lib/DBD/Sponge.pm blib/lib/DBD/Sponge.pm
    cp lib/DBI/Const/GetInfoType.pm blib/lib/DBI/Const/GetInfoType.pm cp
    lib/DBI/DBD/Metadata.pm blib/lib/DBI/DBD/Metadata.pm cp
    lib/DBI/W32ODBC.pm blib/lib/DBI/W32ODBC.pm cp lib/Bundle/DBI.pm
    blib/lib/Bundle/DBI.pm cp lib/DBI/Const/GetInfo/ODBC.pm
    blib/lib/DBI/Const/GetInfo/ODBC.pm
    cp lib/DBI/ProfileDumper/Apache.pm
    blib/lib/DBI/ProfileDumper/Apache.pm
    cp lib/DBI/Profile.pm blib/lib/DBI/Profile.pm
    cp Driver.xst blib/arch/auto/DBI/Driver.xst
    cp lib/DBD/File.pm blib/lib/DBD/File.pm
    cp lib/DBI/ProfileDumper.pm blib/lib/DBI/ProfileDumper.pm
    cp dbipport.h blib/arch/auto/DBI/dbipport.h
    cp lib/DBD/NullP.pm blib/lib/DBD/NullP.pm
    cp lib/DBI/DBD.pm blib/lib/DBI/DBD.pm
    cp lib/DBI/ProxyServer.pm blib/lib/DBI/ProxyServer.pm
    cp lib/Win32/DBIODBC.pm blib/lib/Win32/DBIODBC.pm
    cp dbi_sql.h blib/arch/auto/DBI/dbi_sql.h
    cp lib/DBD/ExampleP.pm blib/lib/DBD/ExampleP.pm
    cp lib/DBI/PurePerl.pm blib/lib/DBI/PurePerl.pm
    cp lib/DBI/ProfileData.pm blib/lib/DBI/ProfileData.pm
            /opt/perl/bin/perl -p -e "s/~DRIVER~/Perl/g"
    blib/arch/auto/DBI/Driver.xst > Perl.xsi
            /opt/perl/bin/perl /opt/perl/lib/5.8.0/ExtUtils/xsubpp -typemap
    /opt/perl/lib/5.8.0/ExtUtils/typemap -typemap typemap Perl.xs >
    Perl.xsc && mv Perl.xsc Perl.c
            gcc -c -D_POSIX_C_SOURCE=199506L -D_REENTRANT -D_HPUX_SOURCE -fPIC
    -mpa-risc-1-1 -fno-strict-aliasing -D_LARGEFILE_SOURCE
    -D_FILE_OFFSET_BITS=64 -O -DVERSION=\"1.42\" -DXS_VERSION=\"1.42\"
    -fPIC "-I/opt/perl/lib/5.8.0/PA-RISC1.1-thread-multi/CORE" -Wall
    -Wno-comment Perl.c
            /opt/perl/bin/perl /opt/perl/lib/5.8.0/ExtUtils/xsubpp -typemap
    /opt/perl/lib/5.8.0/ExtUtils/typemap -typemap typemap DBI.xs >
    DBI.xsc && mv DBI.xsc DBI.c
            gcc -c -D_POSIX_C_SOURCE=199506L -D_REENTRANT -D_HPUX_SOURCE -fPIC
    -mpa-risc-1-1 -fno-strict-aliasing -D_LARGEFILE_SOURCE
    -D_FILE_OFFSET_BITS=64 -O -DVERSION=\"1.42\" -DXS_VERSION=\"1.42\"
    -fPIC "-I/opt/perl/lib/5.8.0/PA-RISC1.1-thread-multi/CORE" -Wall
    -Wno-comment DBI.c
    DBI.xs: In function `dbih_clearcom':
    DBI.xs:1128: warning: unused variable `Perl___notused'
    DBI.xs: In function `dbih_get_fbav':
    DBI.xs:1265: warning: unused variable `Perl___notused'
    DBI.xs: In function `dbih_set_attr_k':
    DBI.xs:1436: warning: unused variable `Perl___notused'
    DBI.xs:1345: warning: unused variable `Perl___notused'
    DBI.xs: In function `dbih_get_attr_k':
    DBI.xs:1574: warning: unused variable `Perl___notused'
    DBI.xs: In function `log_where':
    DBI.xs:1986: warning: unused variable `Perl___notused'
    DBI.xs: In function `XS_DBI_dispatch':
    DBI.xs:2807: warning: unused variable `Perl___notused'
    Running Mkbootstrap for DBI ()
            chmod 644 DBI.bs
            rm -f blib/arch/auto/DBI/DBI.sl
            LD_RUN_PATH="" gcc -shared -static-libgcc -fPIC DBI.o -o
    blib/arch/auto/DBI/DBI.sl
            chmod 755 blib/arch/auto/DBI/DBI.sl
            cp DBI.bs blib/arch/auto/DBI/DBI.bs
            chmod 644 blib/arch/auto/DBI/DBI.bs
            /opt/perl/bin/perl "-Iblib/arch" "-Iblib/lib" dbiprof.PL dbiprof
    Extracted dbiprof from dbiprof.PL with variable substitutions.
            cp dbiprof blib/script/dbiprof
            /opt/perl/bin/perl "-MExtUtils::MY" -e "MY->fixin(shift)"
    blib/script/dbiprof
            /opt/perl/bin/perl "-Iblib/arch" "-Iblib/lib" dbiproxy.PL dbiproxy
    Extracted dbiproxy from dbiproxy.PL with variable substitutions.
            cp dbiproxy blib/script/dbiproxy
            /opt/perl/bin/perl "-MExtUtils::MY" -e "MY->fixin(shift)"
    blib/script/dbiproxy Manifying blib/man3/DBI::FAQ.3 Manifying
    blib/man1/dbiproxy.1 Manifying blib/man3/DBI::SQL::Nano.3 Manifying
    blib/man3/DBD::Proxy.3 Manifying blib/man3/DBI::Const::GetInfo::ANSI.3
    Manifying blib/man3/DBD::DBM.3
    Manifying blib/man3/DBI.3
    Manifying blib/man3/DBI::Const::GetInfoReturn.3
    Manifying blib/man3/DBD::Sponge.3
    Manifying blib/man1/dbiprof.1
    Manifying blib/man3/DBI::Const::GetInfoType.3
    Manifying blib/man3/DBI::W32ODBC.3
    Manifying blib/man3/DBI::DBD::Metadata.3
    Manifying blib/man3/DBI::Const::GetInfo::ODBC.3
    Manifying blib/man3/DBI::ProfileDumper::Apache.3
    Manifying blib/man3/Bundle::DBI.3
    Manifying blib/man3/DBI::Profile.3
    Manifying blib/man3/DBI::ProfileDumper.3
    Manifying blib/man3/DBD::File.3
    Manifying blib/man3/DBI::ProxyServer.3
    Manifying blib/man3/DBI::DBD.3
    Manifying blib/man3/Win32::DBIODBC.3
    Manifying blib/man3/DBI::PurePerl.3
    Manifying blib/man3/DBI::ProfileData.3
    [root@oberon:/apps11/src/DBI-1.42]# make test
            PERL_DL_NONLAZY=1 /opt/perl/bin/perl "-MExtUtils::Command::MM" "-e"
    "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
    [root@oberon:/apps11/src/DBI-1.42]# make install Installing
    /opt/perl/lib/site_perl/5.8.0/PA-RISC1.1-thread-multi/auto/DBI/dbd_xsh.h
    Installing /opt/perl/lib/site_perl/5.8.0/PA-RISC1.1-thread-multi/auto/DBI/Driver_xst.h
    Installing /opt/perl/lib/site_perl/5.8.0/PA-RISC1.1-thread-multi/auto/DBI/DBIXS.h
    Installing /opt/perl/lib/site_perl/5.8.0/PA-RISC1.1-thread-multi/auto/DBI/Driver.xst
    Installing /opt/perl/lib/site_perl/5.8.0/PA-RISC1.1-thread-multi/auto/DBI/dbi_sql.h
    Installing /opt/perl/lib/site_perl/5.8.0/PA-RISC1.1-thread-multi/auto/DBI/DBI.sl
    Installing /opt/perl/lib/site_perl/5.8.0/PA-RISC1.1-thread-multi/DBI.pm
    Installing /opt/perl/lib/site_perl/5.8.0/PA-RISC1.1-thread-multi/DBD/Sponge.pm
    Installing /opt/perl/lib/site_perl/5.8.0/PA-RISC1.1-thread-multi/DBD/NullP.pm
    Installing /opt/perl/lib/site_perl/5.8.0/PA-RISC1.1-thread-multi/DBD/ExampleP.pm
    Installing /opt/perl/lib/site_perl/5.8.0/PA-RISC1.1-thread-multi/DBI/Changes.pm
    Installing /opt/perl/lib/site_perl/5.8.0/PA-RISC1.1-thread-multi/DBI/DBD.pm
    Installing /opt/perl/lib/site_perl/5.8.0/PA-RISC1.1-thread-multi/DBI/PurePerl.pm
    Installing /opt/perl/lib/site_perl/5.8.0/PA-RISC1.1-thread-multi/DBI/DBD/Metadata.pm
    Installing /opt/perl/man/man1/dbiproxy.1
    Installing /opt/perl/man/man3/DBI.3
    Installing /opt/perl/man/man3/DBD::Sponge.3
    Installing /opt/perl/man/man3/DBI::DBD::Metadata.3
    Installing /opt/perl/man/man3/DBI::DBD.3
    Installing /opt/perl/man/man3/DBI::PurePerl.3
    Installing /opt/perl/bin/dbiproxy
    Appending installation info to
    /opt/perl/lib/5.8.0/PA-RISC1.1-thread-multi/perllocal.pod
    [root@oberon:/apps11/src/DBI-1.42]# make test
            PERL_DL_NONLAZY=1 /opt/perl/bin/perl "-MExtUtils::Command::MM" "-e"
    "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t

    # perl -V
    Summary of my perl5 (revision 5.0 version 8 subversion 0)
    configuration:
      Platform:
        osname=hpux, osvers=11.00, archname=PA-RISC1.1-thread-multi
        uname='hp-ux bertha b.11.00 u 9000800 136901587 unlimited-user
    license '
        config_args='-des -Dcc=gcc -Dcf_by=ActiveState
    -Dcf_email=ActivePerl@ActiveState.com -Uinstallusrbinperl
    -Ud_sigsetjmp -Dusethreads -Duseithreads -Ulocincpth= -Uloclibpth=
    -Accflags=-fPIC -Dd_attribut=undef -Dcccdlflags=-fPIC
    -Darchname=PA-RISC1.1 -Duselargefiles -Accflags=-mpa-risc-1-1
    -Dprefix=/opt/perl -Duselargefiles'
        hint=recommended, useposix=true, d_sigaction=define
        usethreads=define use5005threads=undef useithreads=define
    usemultiplicity=define
        useperlio=define d_sfio=undef uselargefiles=define usesocks=undef
        use64bitint=undef use64bitall=undef uselongdouble=undef
        usemymalloc=n, bincompat5005=undef
      Compiler:
        cc='gcc', ccflags ='-D_POSIX_C_SOURCE=199506L -D_REENTRANT
    -D_HPUX_SOURCE -fPIC -mpa-risc-1-1 -fno-strict-aliasing
    -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64',
        optimize='-O',
        cppflags='-D_HPUX_SOURCE -D_POSIX_C_SOURCE=199506L -D_REENTRANT
    -D_HPUX_SOURCE -fPIC -mpa-risc-1-1 -fno-strict-aliasing'
        ccversion='', gccversion='3.2 20020708 (experimental)',
    gccosandvers='hpux11.00'
        intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=4321
        d_longlong=define, longlongsize=8, d_longdbl=define,
    longdblsize=16
        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=/lib /usr/lib /usr/ccs/lib /usr/local/lib
        libs=-lnsl -lnm -lndbm -lmalloc -ldld -lm -lndir -lcrypt -lsec
    -lpthread
        perllibs=-lnsl -lnm -lmalloc -ldld -lm -lndir -lcrypt -lsec
    -lpthread
        libc=/lib/libc.sl, so=sl, useshrplib=false, libperl=libperl.a
        gnulibc_version=''
      Dynamic Linking:
        dlsrc=dl_hpux.xs, dlext=sl, d_dlsymun=undef, ccdlflags='-Wl,-E
    -Wl,-B,deferred '
        cccdlflags='-fPIC', lddlflags='-shared -static-libgcc -fPIC'

    Characteristics of this binary (from libperl):
      Compile-time options: MULTIPLICITY USE_ITHREADS USE_LARGE_FILES
    PERL_IMPLICIT_CONTEXT
      Locally applied patches:
              ActivePerl Build 806
      Built under hpux
      Compiled at May 2 2003 21:44:05
      @INC:
        /opt/perl/lib/5.8.0/PA-RISC1.1-thread-multi
        /opt/perl/lib/5.8.0
        /opt/perl/lib/site_perl/5.8.0/PA-RISC1.1-thread-multi
        /opt/perl/lib/site_perl/5.8.0
        /opt/perl/lib/site_perl
        .


  • Next message: Soo Hom: "RE: make problem"

    Relevant Pages

    • Re: Installing Perl DBI and Oracle DBD in AIX 5.1
      ... I installed the Oracle DBI by following ... >> the perl DBI and oracle DBD in this machine. ... > discussion about installing DBI on AIX and with ...
      (perl.beginners)
    • Cant locate loadable object for module DBI in @INC
      ... Writing Makefile for DBI ... Extracted dbiproxy from dbiproxy.PL with variable substitutions. ... Manifying blib/man3/DBD::DBM.3 ... Installing /opt/perl/man/man1/dbiproxy.1 ...
      (comp.lang.perl.misc)
    • Re: (Fwd) DBI
      ... Your system is failing to find it in another: ... Most likely you have at least two versions of Perl on the ... > Subject: DBI ... > installing. ...
      (perl.dbi.users)
    • Re: Installing DBI module for Perl 5.8.4
      ... > When installing the DBI module through PPM3 in Perl 5.8.4.810 ... On the very same version of ActiveState perl, I ran 'ppm install DBI' and it ... installing files in blib\lib into architecture ...
      (comp.lang.perl.modules)
    • RE: DBI_DSN, DBD-Oracle & ODBC Examples?
      ... George, just in case you're not familiar with 'perldoc', here's a little ... Perl is installed. ... to read the excellent DBI ... after installing the DBI module you would do "perldoc DBI" at ...
      (perl.dbi.users)