Re: unable to locate DBI.pm

Chad Wallace <[email protected]>
Newsgroups gmane.comp.lang.perl.modules.dbi.general
Organization The Lodging Company
Message-ID <[email protected]>
Posting back to the list...  Please don't reply to me personally; I am
subscribed to the list.


On Tue, 20 May 2014 18:23:52 -0700 (PDT)
Daminto Lie <[email protected]> wrote:

> Thanks a lot for your reply.
> 
> I think this is what I should be using to install DBI and DBD-mysql. 
> 
> 
> But as I mentioned to John before that I think I need to get rid of
> DBI-1.641 first before running the command you suggested. please
> correct me if I'm wrong.

Well, it doesn't seem like that DBI installation is even doing
anything.  But yes, you should remove it, just to get rid of
the clutter.  I would just run this:

rm -r /root/perl5

Then install DBI and DBD-mysql from your distro's packaging system.
They'll be put in the correct place (one of the perl locations under
/usr/share or /usr/lib), and then spamassassin and the others will be
able to use them.



> On Wednesday, 21 May 2014 10:32 AM, Chad Wallace
> <[email protected]> wrote: 
> 
> 
> On Tue, 20 May 2014 17:22:58 -0700
> 
> John R Pierce <[email protected]> wrote:
> 
> > what operating system are you on?  isn't there a DBI and such in the
> > OS package repository?
> > 
> > for instance, on a RHEL/CentOS/Fedora type system, I'd use...
> > 
> >      sudo yum install perl-DBI perl-DBD-MySQL
> > 
> > of course, for a different Linux distribution, or another OS
> > entirely, both the command and the package names are probably
> > different.
> 
> on Debian and related distros:
> 
> sudo apt-get install libdbi-perl libdbd-mysql-perl
> 
> 
> 


-- 

C. Chad Wallace, B.Sc.
The Lodging Company
http://www.lodgingcompany.com/
OpenPGP Public Key ID: 0x262208A0
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.