Hi, The problem has been solved. It was a permission issue in the /usr/opt/perl5 directories. Thanks again for your help.
Steve "Jeff Urlwin" <[EMAIL PROTECTED]> 02/04/2005 01:15 PM To: <[EMAIL PROTECTED]>, <[EMAIL PROTECTED]> cc: <dbi-users@perl.org>, <[EMAIL PROTECTED]> Subject: RE: DBI-1.46 issues > > Hi Paul, > Any ideas why I can run the script as root and not another account? The most obvious ones are: - Environment -- are you sure you are running the same perl in both accounts? Path differences, etc, could cause issues. I've seen this where /usr/bin/perl is in a path first, and /usr/local/bin/perl is the newly installed perl for some accounts. Each will look in their own lib paths for modules (one may be 5.8.0 and the other something different or may be 5.8.0 with threading enabled, etc). Use "which perl" in each account to ensure they are running the same perl, along with perl -v or perl -V. - Permissions -- ensure you have permissions in the non-root account to open files/paths in the perl lib tree, etc. - Incorrect installation of DBI. One common mistake is that people copy DBI.pm to various locations instead of "make install" Jeff > > > Thanks, > > Steve > > > > > > > [EMAIL PROTECTED] > 02/03/2005 02:22 PM > > To: [EMAIL PROTECTED] > cc: dbi-users@perl.org, [EMAIL PROTECTED] > Subject: Re: DBI-1.46 issues > > > Works fine over here, with a nearly identical install: > $ oslevel > 5.2.0.0 > $ perl test.pl > Perl binary = perl > Perl version = 5.008 > DBI Version = 1.46 > OS = aix > Available Drivers: > DB2 > DBM > ExampleP > File > Proxy > Sponge > > > Quoting [EMAIL PROTECTED]: > > > 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 > > > > > >