Can share my own experience working with perlbrew on CentOS 6.6

CentOS yum repository has precompiled modules, so you can't install anything for anything, like in FreeBSD for example. Only specific DBD::mysql for system perl and system mysql.

I couldn't make cpan utility to install modules for perlbrew installations. The only working way I found is using perl -MCPAN -e shell.

From there you may compile and install DBD::mysql, but you need to have mysql-libs installed.

Here is kinda working script (don't use on production server, only safe test environment):

# if you've want to use mysql5.5 you need to updgrade mysql and mysqll +ibs: yum install mysql.`uname -i` yum-plugin-replace --assumeyes yum replace mysql-libs --replace-with mysql55-libs --assumeyes # switch to specific perl perlbrew use perl-5.18.4 # start interactive CPAN shell perl -MCPAN -e shell # type in console: install DBD::mysql
Should work fine


In reply to Re: Installing DBD::mysql for non-system Perl (CentOS) by hurricup
in thread Installing DBD::mysql for non-system Perl (CentOS) by mkchris

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.