The problem is that you now have two programs that can be invoked under the name perl on your system, and the two are largely incompatible when it comes to binary modules like DBI. I fear you might even have broken your Debian installation by installing the new Perl 5.8.7, as Debian apt-get is written in Perl and relies on modules that Debian does not make available via CPAN for other versions of Perl. I once ruined a Debian system by replacing the system Perl with a self-compiled version which didn't follow the same setup as Debian.

If you still can, try to untangle the two versions of Perl and make sure that /usr/bin/perl points to the old Debian system Perl. If that doesn't work, many of Debians utilities will be broken for you, mainly apt-get.

Personally, I install all my "private" versions of Perl under /opt/perl/ now, with a PREFIX=/opt/perl (in the Makefile) and with the explicit version number in the path, so all my Perl versions live in completely distinct directories.


In reply to Re: Uninstalling DBD::mysql and dependent modules by Corion
in thread Uninstalling DBD::mysql and dependent modules by chanakya

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.