Good timing. Thanks.

DBI 1.53 no longer inherits from Exporter, but Exporter is where the
require_version class method is implemented.

On reflection I don't see sufficient value in not inheriting from
Exporter so I'll reinstate that. (It's DynaLoader that causes the
confusing error message because it uses AutoLoader - but I'd rather not
mess with DynaLoader inheritance because that's likely to break anyone
still using static linking.)

You can try this:

--- DBI.pm      (revision 7976)
+++ DBI.pm      (working copy)
@@ -156,8 +156,7 @@
 use Exporter ();
 
 BEGIN {
[EMAIL PROTECTED] = qw(DynaLoader);
-*import= \&Exporter::import; # avoid need to have Exporter in @ISA
[EMAIL PROTECTED] = qw(Exporter DynaLoader);
 
 # Make some utility functions available if asked for
 @EXPORT    = ();                   # we export nothing by default

Tim.

On Thu, Oct 26, 2006 at 05:02:35PM -0500, Prashanth Meka wrote:
> Hi,
> 
> I am trying to install DBI-1.53 but it gives me the following error:
> Can't locate auto/DBI/require_ver.al in @INC (@INC contains:
> /u/pvmeka/perl/lib/5.8.8/i686-linux-thread-multi /u/pvmeka/perl/lib/5.8.8
> /u/pvmeka/perl/lib/site_perl/5.8.8/i686-linux-thread-multi
> /u/pvmeka/perl/lib/site_perl/5.8.8 /u/pvmeka/perl/lib/site_perl .) at
> /u/pvmeka/perl/lib/site_perl/5.8.8/i686-linux-thread-multi/DBD/DB2.pm line
> 27
> Compilation failed in require at t.pl line 2.
> BEGIN failed--compilation aborted at t.pl line 2.
> 
> The installation is on linux. Can someone help me out?
> 
> -- 
> Invest in your future. Buy land today! Visit www.greatlandsales.com

Reply via email to