In your script's shebang line, are you perhaps using: #!/usr/local/bin/perl ?
Try a "which perl" from the command line and see if it varies from your shebang line. Perhaps /usr/bin/perl? Jake Hoban wrote: > Hi > > I'm new to this list, but I've looked through the archives before > posting and I can't find the exact answer to this, only a few ideas. > I'm running Red Hat Linux 7.1, using Perl 5.6.1 and trying to get DBI > 1.20 to work. I've tried installing two different ways - by downloading > the tar.gz, running 'perl Makefile.PL', make, make test, make install; > and also by doing "perl -MCPAN -e 'install DBI'". In each case the > installation seemed to go fine with no errors. However, a script using > DBI doesn't work, although I've seen the same script work fine on > another machine. > > The script (called load_bugs, which is supposed to use DBI to populate a > MySQL database) falls over when it gets to "use DBI". Here is the full > output: > > Can't locate loadable object for module DBI in @INC (@INC contains: > /usr/local/lib/perl5/5.6.1/i686-linux /usr/local/lib/perl5/5.6.1 > /usr/local/lib/perl5/site_perl/5.6.1/i686-linux > /usr/local/lib/perl5/site_perl/5.6.1 /usr/local/lib/perl5/site_perl .) > at /usr/local/lib/perl5/site_perl/5.6.1/i686-linux/DBI.pm line 189 > BEGIN failed--compilation aborted at > /usr/local/lib/perl5/site_perl/5.6.1/i686-linux/DBI.pm line 189. > Compilation failed in require at ./load_bugs line 9. > BEGIN failed--compilation aborted at ./load_bugs line 9. > > If you look around line 189 of DBI.pm, here's what it says: > > # If you get an error here like "Can't find loadable object ..." > # then you haven't installed the DBI correctly. Read the README > # then install it again. > bootstrap DBI; > > } > > Needless to say I have read the README plenty of times now! > If I knew which loadeble object it was looking for, I might get > somewhere... > I'm happy to supply any more info you need to help me. > > Thanks in advance! > > -- > Kind regards > Jake Hoban > Systems Administrator > GenaWarehouse > +44-161-955 4364
