Can"t locate object method "require_version" via package "DBI"

Can"t locate object method "require_version" via package "DBI"

am 12.05.2003 22:56:18 von David Shrewsbury

I've searched the archives and the 'net but can't really
find anything that provides a solution to the following
problem:

I've compiled Apache 1.3.27, mod_perl 1.27, and installed
the latest DBI and Apache-DBI perl modules, but whenever
I try to start my web server, I get the following error:

Can't locate object method "require_version" via package
"DBI" (perhaps you forgot to load "DBI"?) at
/usr/opt/perl5/lib/site_perl/5.8.0/Apache/DBI.pm line 10.

This is an AIX 5.2 box with Perl 5.8.0. Please tell me
someone has a solution to this...

-David

Re: Can"t locate object method "require_version" via package "DBI"

am 13.05.2003 03:31:08 von Stas Bekman

David Shrewsbury wrote:
> I've searched the archives and the 'net but can't really
> find anything that provides a solution to the following
> problem:
>
> I've compiled Apache 1.3.27, mod_perl 1.27, and installed
> the latest DBI and Apache-DBI perl modules, but whenever
> I try to start my web server, I get the following error:

what's the latest DBI? 1.35 or 1.36-tobe? what's the Apache::DBI version?

> Can't locate object method "require_version" via package
> "DBI" (perhaps you forgot to load "DBI"?) at
> /usr/opt/perl5/lib/site_perl/5.8.0/Apache/DBI.pm line 10.
>
> This is an AIX 5.2 box with Perl 5.8.0. Please tell me
> someone has a solution to this...

require_version is iherited by DBI.pm from Exporter.pm, so since Apache::DBI
did load DBI, it should work.

This is exactly the same:
DBI->require_version(1.00)
as the original:
require_version DBI 1.00;

but give it a try (adjust /usr/opt/perl5/lib/site_perl/5.8.0/Apache/DBI.pm)

If everything fails, try to replace it with:

require Exporter;
Exporter::require_version('DBI', 1.00);

____________________________________________________________ ______
Stas Bekman JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/ mod_perl Guide ---> http://perl.apache.org
mailto:stas@stason.org http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org http://ticketmaster.com

Re: Can"t locate object method "require_version" via package "DBI"

am 13.05.2003 13:19:58 von David Shrewsbury

DBI 1.35 and Apache-DBI 0.91.

I tried both of your suggested modifications to the
module, however neither worked. I get the same error
with the first, and the second (to include Exporter)
gives me the error:

DBI defines neither package nor VERSION--version check failed at
/usr/opt/perl5/lib/5.8.0/Exporter/Heavy.pm line 221

Any more suggestions?

-David


On Mon, 2003-05-12 at 21:31, Stas Bekman wrote:
> David Shrewsbury wrote:
> > I've searched the archives and the 'net but can't really
> > find anything that provides a solution to the following
> > problem:
> >
> > I've compiled Apache 1.3.27, mod_perl 1.27, and installed
> > the latest DBI and Apache-DBI perl modules, but whenever
> > I try to start my web server, I get the following error:
>
> what's the latest DBI? 1.35 or 1.36-tobe? what's the Apache::DBI version?
>
> > Can't locate object method "require_version" via package
> > "DBI" (perhaps you forgot to load "DBI"?) at
> > /usr/opt/perl5/lib/site_perl/5.8.0/Apache/DBI.pm line 10.
> >
> > This is an AIX 5.2 box with Perl 5.8.0. Please tell me
> > someone has a solution to this...
>
> require_version is iherited by DBI.pm from Exporter.pm, so since Apache::DBI
> did load DBI, it should work.
>
> This is exactly the same:
> DBI->require_version(1.00)
> as the original:
> require_version DBI 1.00;
>
> but give it a try (adjust /usr/opt/perl5/lib/site_perl/5.8.0/Apache/DBI.pm)
>
> If everything fails, try to replace it with:
>
> require Exporter;
> Exporter::require_version('DBI', 1.00);
>
> ____________________________________________________________ ______
> Stas Bekman JAm_pH ------> Just Another mod_perl Hacker
> http://stason.org/ mod_perl Guide ---> http://perl.apache.org
> mailto:stas@stason.org http://use.perl.org http://apacheweek.com
> http://modperlbook.org http://apache.org http://ticketmaster.com

Re: Can"t locate object method "require_version" via package "DBI"

am 13.05.2003 15:41:42 von David Shrewsbury

I found the problem. There was another DBI.pm module in
/usr/opt/perl5/lib/5.8.0/aix-thread-multi/. Removing this
file fixed everything. I should have paid more attention
to the DBI install process because it recommended removing
this file. This was an Apache-DBI module. I'm not sure if
it came as part of the standard installation or if Apache-DBI
installation process put it there. Strange.

-David


On Tue, 2003-05-13 at 07:19, David Shrewsbury wrote:
> DBI 1.35 and Apache-DBI 0.91.
>
> I tried both of your suggested modifications to the
> module, however neither worked. I get the same error
> with the first, and the second (to include Exporter)
> gives me the error:
>
> DBI defines neither package nor VERSION--version check failed at
> /usr/opt/perl5/lib/5.8.0/Exporter/Heavy.pm line 221
>
> Any more suggestions?
>
> -David
>
>
> On Mon, 2003-05-12 at 21:31, Stas Bekman wrote:
> > David Shrewsbury wrote:
> > > I've searched the archives and the 'net but can't really
> > > find anything that provides a solution to the following
> > > problem:
> > >
> > > I've compiled Apache 1.3.27, mod_perl 1.27, and installed
> > > the latest DBI and Apache-DBI perl modules, but whenever
> > > I try to start my web server, I get the following error:
> >
> > what's the latest DBI? 1.35 or 1.36-tobe? what's the Apache::DBI version?
> >
> > > Can't locate object method "require_version" via package
> > > "DBI" (perhaps you forgot to load "DBI"?) at
> > > /usr/opt/perl5/lib/site_perl/5.8.0/Apache/DBI.pm line 10.
> > >
> > > This is an AIX 5.2 box with Perl 5.8.0. Please tell me
> > > someone has a solution to this...
> >
> > require_version is iherited by DBI.pm from Exporter.pm, so since Apache::DBI
> > did load DBI, it should work.
> >
> > This is exactly the same:
> > DBI->require_version(1.00)
> > as the original:
> > require_version DBI 1.00;
> >
> > but give it a try (adjust /usr/opt/perl5/lib/site_perl/5.8.0/Apache/DBI.pm)
> >
> > If everything fails, try to replace it with:
> >
> > require Exporter;
> > Exporter::require_version('DBI', 1.00);
> >
> > ____________________________________________________________ ______
> > Stas Bekman JAm_pH ------> Just Another mod_perl Hacker
> > http://stason.org/ mod_perl Guide ---> http://perl.apache.org
> > mailto:stas@stason.org http://use.perl.org http://apacheweek.com
> > http://modperlbook.org http://apache.org http://ticketmaster.com