Hi,
  I installed DBI-1.46 on an AIX box.    The installation seemed to go fine, no errors.     I ran the makefile.pl, make and make test as user db2clnt8.  The make install I had to run as root.    the script runs OK as root but not as db2clnt8.    It gets the error below.


DBI install logs


                             
                                         
             


 When I run the script I get the following error.

Script:

#!/usr/bin/perl                        
                                       
use DBI;                              
                                       
# Print some useful stuff              
my $os=$^O;                            
print "Perl binary = $^X\n";          
print "Perl Version = $]\n";          
print "DBI Version = $DBI::VERSION\n";
print "Operating System: $os\n";      
                                       
# Check available drivers              
@ary=DBI->available_drivers;          
print "Available Drivers:\n";          
foreach (@ary) {print "\t$_\n";};      
print "\n";


Error

   

Can't locate loadable object for module DBI in @INC (@INC contains: /usr/opt/per
l5/lib/5.8.0/aix-thread-multi /usr/opt/perl5/lib/5.8.0 /usr/opt/perl5/lib/site_p
erl/5.8.0/aix-thread-multi /usr/opt/perl5/lib/site_perl/5.8.0 /usr/opt/perl5/lib
/site_perl .) at /usr/opt/perl5/lib/site_perl/5.8.0/aix-thread-multi/DBI.pm line
 254
BEGIN failed--compilation aborted at /usr/opt/perl5/lib/site_perl/5.8.0/aix-thre
ad-multi/DBI.pm line 254.
Compilation failed in require at dbi_info.pl line 3.
BEGIN failed--compilation aborted at dbi_info.pl line 3.



Thanks,

Steve

Attachment: makefile.pl
Description: Binary data

$ make
        cp Changes blib/lib/DBI/Changes.pm
        cp Roadmap.pod blib/lib/DBI/Roadmap.pm
cp lib/DBD/DBM.pm blib/lib/DBD/DBM.pm
cp DBIXS.h blib/arch/auto/DBI/DBIXS.h
cp Driver_xst.h blib/arch/auto/DBI/Driver_xst.h
cp lib/DBD/Proxy.pm blib/lib/DBD/Proxy.pm
cp testit.pl blib/lib/testit.pl
cp Roadmap.pod blib/lib/Roadmap.pod
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 Driver.xst blib/arch/auto/DBI/Driver.xst
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 dbd_xsh.h blib/arch/auto/DBI/dbd_xsh.h
cp dbivport.h blib/arch/auto/DBI/dbivport.h
cp lib/DBD/NullP.pm blib/lib/DBD/NullP.pm
cp dbi_sql.h blib/arch/auto/DBI/dbi_sql.h
cp lib/DBD/File.pm blib/lib/DBD/File.pm
cp DBI.pm blib/lib/DBI.pm
cp lib/DBI/FAQ.pm blib/lib/DBI/FAQ.pm
cp lib/DBI/SQL/Nano.pm blib/lib/DBI/SQL/Nano.pm
cp lib/DBI/Const/GetInfo/ANSI.pm blib/lib/DBI/Const/GetInfo/ANSI.pm
cp lib/DBI/Const/GetInfoReturn.pm blib/lib/DBI/Const/GetInfoReturn.pm
cp lib/Bundle/DBI.pm blib/lib/Bundle/DBI.pm
cp lib/DBD/Sponge.pm blib/lib/DBD/Sponge.pm
cp lib/DBI/W32ODBC.pm blib/lib/DBI/W32ODBC.pm
cp dbi_info.pl blib/lib/dbi_info.pl
cp lib/DBI/Profile.pm blib/lib/DBI/Profile.pm
cp lib/DBI/ProfileDumper.pm blib/lib/DBI/ProfileDumper.pm
cp lib/DBI/ProxyServer.pm blib/lib/DBI/ProxyServer.pm
cp dbipport.h blib/arch/auto/DBI/dbipport.h
cp lib/DBI/DBD.pm blib/lib/DBI/DBD.pm
cp lib/Win32/DBIODBC.pm blib/lib/Win32/DBIODBC.pm
cp lib/DBI/PurePerl.pm blib/lib/DBI/PurePerl.pm
cp lib/DBD/ExampleP.pm blib/lib/DBD/ExampleP.pm
cp lib/DBI/ProfileData.pm blib/lib/DBI/ProfileData.pm
        /usr/bin/perl -e 'use ExtUtils::Mksymlists;  Mksymlists("NAME" => "DBI",
 "DL_FUNCS" => {  }, "FUNCLIST" => [], "DL_VARS" => []);'
        /usr/bin/perl -p -e "s/~DRIVER~/Perl/g" ./Driver.xst > Perl.xsi
        /usr/bin/perl /usr/opt/perl5/lib/5.8.0/ExtUtils/xsubpp  -typemap /usr/op
t/perl5/lib/5.8.0/ExtUtils/typemap -typemap typemap  Perl.xs > Perl.xsc && mv Pe
rl.xsc Perl.c
        cc_r -c    -D_ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX_SOURCE -qmaxmem=16384
 -qnoansialias -DUSE_NATIVE_DLOPEN -DNEED_PTHREAD_INIT -q32 -D_LARGE_FILES -qlon
glong -O    -DVERSION=\"1.46\"  -DXS_VERSION=\"1.46\"  "-I/usr/opt/perl5/lib/5.8
.0/aix-thread-multi/CORE"   Perl.c
        /usr/bin/perl /usr/opt/perl5/lib/5.8.0/ExtUtils/xsubpp  -typemap /usr/op
t/perl5/lib/5.8.0/ExtUtils/typemap -typemap typemap  DBI.xs > DBI.xsc && mv DBI.
xsc DBI.c
        cc_r -c    -D_ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX_SOURCE -qmaxmem=16384
 -qnoansialias -DUSE_NATIVE_DLOPEN -DNEED_PTHREAD_INIT -q32 -D_LARGE_FILES -qlon
glong -O    -DVERSION=\"1.46\"  -DXS_VERSION=\"1.46\"  "-I/usr/opt/perl5/lib/5.8
.0/aix-thread-multi/CORE"   DBI.c

Running Mkbootstrap for DBI ()
        chmod 644 DBI.bs
        rm -f blib/arch/auto/DBI/DBI.so
        LD_RUN_PATH="" ld  -bhalt:4 -bM:SRE -bI:/usr/opt/perl5/lib/5.8.0/aix-thr
ead-multi/CORE/perl.exp -bE:DBI.exp -bnoentry -lpthreads -lc_r DBI.o  -o blib/ar
ch/auto/DBI/DBI.so     
        chmod 755 blib/arch/auto/DBI/DBI.so
        cp DBI.bs blib/arch/auto/DBI/DBI.bs
        chmod 644 blib/arch/auto/DBI/DBI.bs
        /usr/bin/perl "-Iblib/arch" "-Iblib/lib" dbiprof.PL dbiprof
Extracted dbiprof from dbiprof.PL with variable substitutions.
        /usr/bin/perl "-Iblib/arch" "-Iblib/lib" dbiproxy.PL dbiproxy
Extracted dbiproxy from dbiproxy.PL with variable substitutions.
        cp dbiprof blib/script/dbiprof
        /usr/bin/perl "-MExtUtils::MY"  -e "MY->fixin(shift)" blib/script/dbipro
f
        cp dbiproxy blib/script/dbiproxy
        /usr/bin/perl "-MExtUtils::MY"  -e "MY->fixin(shift)" blib/script/dbipro
xy
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/Roadmap.3
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
Target "makemakerdflt" is up to date.
$ =
$ make test 
        PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_har
ness(0, 'blib/lib', 'blib/arch')" t/*.t
t/01basics............ok                                                     
        4/131 skipped: developer tests
t/02dbidrv............ok                                                     
t/03handle............ok                                                     
t/04mods..............ok                                                     
t/05thrclone..........ok                                                     
t/06attrs.............ok                                                     
t/07kids..............ok                                                     
t/08keeperr...........ok                                                     
t/09trace.............ok                                                     
t/10examp.............ok                                                     
t/14utf8..............ok                                                     
t/15array.............ok                                                     
t/20meta..............ok                                                     
t/30subclass..........ok                                                     
t/40profile...........ok                                                     
t/41prof_dump.........ok                                                     
t/42prof_data.........ok                                                     
t/50dbm...............ok                                                     
t/60preparse..........ok                                                     
t/80proxy.............skipped
        all skipped: modules required for proxy are probably not installed (e.g.
, RPC/PlClient.pm)
t/pod.................skipped
        all skipped: Test::Pod 1.00 required for testing POD
t/zvpp_01basics.......ok                                                     
        4/131 skipped: developer tests
t/zvpp_02dbidrv.......ok                                                     
        10/51 skipped: various reasons
t/zvpp_03handle.......ok                                                     
        69/124 skipped: various reasons
t/zvpp_04mods.........ok                                                     
t/zvpp_05thrclone.....ok                                                     
t/zvpp_06attrs........ok                                                     
        7/137 skipped: various reasons
t/zvpp_07kids.........skipped
        all skipped: $h->{Kids} attribute not supported for DBI::PurePerl
t/zvpp_08keeperr......ok                                                     
t/zvpp_09trace........ok                                                     
t/zvpp_10examp........ok                                                     
        39/252 skipped: various reasons
t/zvpp_14utf8.........ok                                                     
t/zvpp_15array........ok                                                     
t/zvpp_20meta.........ok                                                     
t/zvpp_30subclass.....ok                                                     
t/zvpp_40profile......skipped
        all skipped: profiling not supported for DBI::PurePerl
t/zvpp_41prof_dump....skipped
        all skipped: profiling not supported for DBI::PurePerl
t/zvpp_42prof_data....skipped
        all skipped: profiling not supported for DBI::PurePerl
t/zvpp_50dbm..........ok                                                     
t/zvpp_60preparse.....skipped
        all skipped: preparse not supported for DBI::PurePerl
t/zvpp_80proxy........skipped
        all skipped: modules required for proxy are probably not installed (e.g.
, RPC/PlClient.pm)
All tests successful, 8 tests and 133 subtests skipped.
Files=41, Tests=2166, 32 wallclock secs (25.58 cusr +  5.96 csys = 31.54 CPU)
        PERL_DL_NONLAZY=1 /usr/bin/perl "-Iblib/lib" "-Iblib/arch" test.pl
test.pl 
DBI test application $Revision: 11.7 $
Switch: DBI 1.46 by Tim Bunce, 1.46
Available Drivers: DBM, ExampleP, File, Proxy, Sponge
dbi:ExampleP:: testing 5 sets of 20 connections:
Connecting... 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 
Disconnecting...
Connecting... 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 
Disconnecting...
Connecting... 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 
Disconnecting...
Connecting... 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 
Disconnecting...
Connecting... 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 
Disconnecting...
Made 100 connections in  0 wallclock secs ( 0.05 usr +  0.00 sys =  0.05 CPU)

Testing handle creation speed...
 4629 NullP sth/s perl    5.008 aix-thread-multi (cc_r  -O)

test.pl done
Target "test" is up to date.
$ =

Reply via email to