Installing Perl Modules the CPAN Way

  • user warning: Table 'cache' is marked as crashed and should be repaired query: SELECT data, created, headers, expire FROM cache WHERE cid = 'filter:3:4c465f2c555d9d6181a561ab316ed64d' in /home/dowdle/public_html/montanalinux/includes/database.mysql.inc on line 121.
  • user warning: Table 'cache' is marked as crashed and should be repaired query: UPDATE cache SET data = '<p>I have done this many times following various instructions when installing perl modules but for the most part they all tell you to:<br />\n<blockquote>\n<pre>download > extract > cd into extracted dir\nperl Makefile.PL\nmake\nmake install</pre></p></blockquote>\n<p>I remember there was an easier way that went out and fulfilled all dependencies but I could never remember because I just followed the README file. Today I read a post where at least a couple folks gave the same instructions I recalled using:</p>\n<blockquote>\n<pre>perl -MCPAN -e shell\ninstall modulename</blockquote></pre><p>Much easier!</p>\n<p>UPDATE:<br />\nAnother poster made another good suggestion of keeping with RPMs. Once you have exhausted you means to find an RPM of the module by using existing repositories either stock for most popular or repos like dag for other minor modules. If you then didn\'t find your module there and want to continue with RPM you could use <a href=\"http://search.cpan.org/src/CHIPT/RPM-Specfile-1.51/cpanflute2\" target=\"_cpanflute2\">cpanflute2</a> to convert from the CPAN tar files into RPMs. It\'s in the perl-RPM-Specfile package, which you should be able to install via yum.. However I have not used this and rarely find myself insisting on RPM\'s in every situation. The only service I see this providing is a quick clean removal if necessary.</p>\n', created = 1410982509, expire = 1411068909, headers = '' WHERE cid = 'filter:3:4c465f2c555d9d6181a561ab316ed64d' in /home/dowdle/public_html/montanalinux/includes/database.mysql.inc on line 121.
| |

I have done this many times following various instructions when installing perl modules but for the most part they all tell you to:

download > extract > cd into extracted dir
perl Makefile.PL
make
make install

I remember there was an easier way that went out and fulfilled all dependencies but I could never remember because I just followed the README file. Today I read a post where at least a couple folks gave the same instructions I recalled using:

perl -MCPAN -e shell
install modulename

Much easier!

UPDATE:
Another poster made another good suggestion of keeping with RPMs. Once you have exhausted you means to find an RPM of the module by using existing repositories either stock for most popular or repos like dag for other minor modules. If you then didn't find your module there and want to continue with RPM you could use cpanflute2 to convert from the CPAN tar files into RPMs. It's in the perl-RPM-Specfile package, which you should be able to install via yum.. However I have not used this and rarely find myself insisting on RPM's in every situation. The only service I see this providing is a quick clean removal if necessary.