I'm sorry to keep cluttering up the list with my ignorance, but I can't 
seem to get this working. From a CPAN shell, I've tried "install DBI", 
"recompile DBI" and pretty much anything else I could think of. Whenever 
I run a script using DBI I get the same problem (which is that it 
complains about DBI not being in @INC, although it is, and the real 
error seems to occur at line 189 of DBI.pm where it wants to "bootstrap 
DBI").

If anyone isn't sick of this one yet, I'd still be grateful for any ideas.

Sterin, Ilya wrote:

> You can use the CPAN.pm module to install or update any module.  As far as
> fixing this, just install DBI with the correct perl version and then you'll
> be able to use without modifying @INC.  Otherwise you will have to modify
> @INC in all scripts, which I wouldn't recommend because of some older perl
> version incompatibility that might exist.
> 
> Ilya
> 
> -----Original Message-----
> From: Jake Hoban
> To: Sterin, Ilya
> Cc: '[EMAIL PROTECTED] '
> Sent: 10/30/01 9:56 AM
> Subject: Re: Can't locate loadable object for module DBI in @INC
> 
> 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!

Reply via email to