[ic] DBD problem revisited

Mike Heins interchange-users@interchange.redhat.com
Fri Nov 16 21:24:01 2001


Quoting Patrick J. Walsh (pwalsh@dyna-q.net):
> > > 66.74.46.220 75tC5bVt:66.74.46.220 - [16/November/2001:16:33:33 -0500]
> > > dyna-q /~dyna-q/cgi-bin/cart.cgi/index.html Runtime error: connect
> failed
> > > (create) -- Undefined subroutine &DBD::mysql::db::_login called at
> > > /usr/lib/perl5/site_perl/5.005/i386-linux/DBD/mysql.pm line 131, <IN>
> chunk
> >                           ^^^^^^
> >
> > Sounds like your installation is a bit old.  You might want to check that.
> > Or you might have another mysql.pm hanging around.  With linux, never
> > go back, just keep current.
> 
>     What makes you think that it's old?  Perl is version 5.005_03, which I
> believe is the latest.  And the DBD and DBI libraries were installed using
> the -MCPAN parameter only a day ago.

Perl 5.005_03 is two-and-a-half years old. 5.005 as a release is over 3
years old. That is an eon in Internet time.

5.6.0 has been out for 17 months.

> 
>     `slocate mysql.pm` returned two mysql.pm's that are installed outside of
> home directories.
> 
> /usr/lib/perl5/site_perl/5.005/i386-linux/Bundle/DBD/mysql.pm
> /usr/lib/perl5/site_perl/5.005/i386-linux/DBD/mysql.pm
> 
>     The bottom one is 2.1002, the top one is 2.0416.  However, the error
> message says that it is using the one on the bottom.  Is there something
> else that could be going wrong?  Or do I need to have the bundle updated?

It is a bogus build.

Try:

	cd ~/interchange
	cpan_local_install DBD::mysql

-- 
Red Hat, Inc., 3005 Nichols Rd., Hamilton, OH  45013
phone +1.513.523.7621      <mheins@redhat.com>

Clothes make the man.  Naked people have little or no influence on
society.  -- Mark Twain