Thanks! I think you must have found the answer, because that's certainly true. I was using perl 5.6.0 until yesterday - I'm sorry, I should have mentioned that before. DBI was installed while I was still running 5.6.0, it was actually in the process of trying to fix something else that I ended up upgrading to 5.6.1. Next stupid question: how do I get out of this mess? Is there a simple way to uninstall DBI rather than just keep reinstalling over the existing version, which I've been doing till now?
Sterin, Ilya wrote: > This is because the script you are using is run with a different perl > version that was used to install DBI. Also you might of installed DBI in a > non standard directory, which will not append it to @INC. See perldoc > perlvar for more info on @INC. > > Ilya > > -----Original Message----- > From: Jake Hoban > To: [EMAIL PROTECTED] > Sent: 10/30/01 9:33 AM > Subject: Can't locate loadable object for module DBI in @INC > > 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
