Skip to content

Installing Perl CPAN modules

Runar Buvik edited this page Mar 17, 2014 · 3 revisions

Many CPAN modules are available directly through the yum repository. You should start be using thus. However if the modules you need are not in the yum repository, you can install them directly from CPAN by using the CPAN shell.

First install the CPAN rpm package. As root do:

yum install perl-CPAN

Then use the following command to start the CPAN shell:

/home/boitho/boithoTools/bin/perl -MCPAN -e shell

CPAN will then prompt you to configure you environment. If you have a special setup (for example are using a proxy server) you must configure manually, but it is normally safe to answer "no" to the "Are you ready for manual configuration?" question and trigger an autoconfigure.

The embedded version the ES is using is 32 bit version of Perl. But /usr/bin/perl is 64 bit. You may therefor experiences some differences in available CPAN modules if you develop scripts from the command line, and then later embed them in the crawler or usersystem.

To prevent this Perl with the same environment and with the same modules as the ES, using the /home/boitho/boithoTools/bin/perl binary.