damlee76 has asked for the wisdom of the Perl Monks concerning the following question:

Hi, I keep getting the following error: Can't locate loadable object for module DBD::mysql in @INC (@INC contains: /etc/perl /usr/local/lib/perl/5.14.2 /usr/local/share/perl/5.14.2 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.14 /usr/share/perl/5.14 /usr/local/lib/site_perl .) at (eval 15) line 3.

I think I might inadvertently have had two perls installed on my system. One was installed manually through checkinstall command and the other one may be via Ubuntu server 12.04 repo.

At the moment, my current perl version is

$ perl -V

Summary of my perl5 (revision 5 version 14 subversion 2) configuration:
...

@INC:

/etc/perl

/usr/local/lib/perl/5.14.2

/usr/local/share/perl/5.14.2

/usr/lib/perl5

/usr/share/perl5

/usr/lib/perl/5.14

/usr/share/perl/5.14

/usr/local/lib/site_perl



I was hoping if anyone might be able to help get around this issue. Thank you very much in advance.

  • Comment on More than two perls installed accidentally

Replies are listed 'Best First'.
Re: More than two perls installed accidentally
by wjw (Priest) on May 12, 2014 at 09:12 UTC
    Gotta make a plug for PerlBrew here:

    I have found myself fairly limited recently with the various Distro Perls. I had also made the mistake of 'hand installing' a few modules when I thought I could get away with it, which invariable let to problems. PerlBrew solved that for me. My distro can have what it wants and I can run several other versions of Perl as I see fit. This also helps me keep track of exactly what I do and don't have available to me from a CPAN module perspective. Also, I like going directly to the source for my Perl fixes.

    Take a look, you might find it very helpful in preventing confusion about what is and isn't installed. It installs very nicely on Ubuntu and derivatives(I use Bodhi)

    Hope you might find that informative if not directly helpful...

    ...the majority is always wrong, and always the last to know about it...
    Insanity: Doing the same thing over and over again and expecting different results...
Re: More than two perls installed accidentally
by Anonymous Monk on May 12, 2014 at 06:43 UTC

    Hi, I keep getting the following error: Can't locate loadable object for module DBD::mysql in @INC ... I was hoping if anyone might be able to help get around this issue

    The module isn't installed properly, so install it again :)

    Either using apt-get or whatever into your system perl, or cpan into the other perl, your choice