CPAN installation proble, HTTP::Message on CentOS

Joon asked:

I have a perl script that needs a long list of prerequisites. While installing these, I am not getting past the installation of HTTP::Message

When I run cpan HTTP::Message from the command line as root, I get the following output:

cpan HTTP::Message

Reading ‘/root/.cpan/Metadata’

Database was generated on Mon, 27 Apr 2015 12:53:26 GMT

Running install for module ‘HTTP::Message’

Running make for G/GA/GAAS/HTTP-Message-6.06.tar.gz

Checksum for
/root/.cpan/sources/authors/id/G/GA/GAAS/HTTP-Message-6.06.tar.gz ok

CPAN.pm: Building G/GA/GAAS/HTTP-Message-6.06.tar.gz

Checking if your kit is complete…

Looks good

Warning: prerequisite Encode::Locale 1 not found.

Warning: prerequisite HTTP::Date 6 not found.

Warning: prerequisite IO::HTML 0 not found.

Warning: prerequisite LWP::MediaTypes 6 not found.

Warning: prerequisite URI 1.10 not found.

Writing Makefile for HTTP::Message

However, I have run cpan individually for all of those prerequisites (as root), and the install succeeded.

What am I missing here?

I am running CentOS Linux release 7.1.1503 (Core)

My answer:


What’s wrong with just doing yum install perl-HTTP-Message? Why are you trying to use CPAN? You should avoid using CPAN when the perl modules are already packaged.


View the full question and answer on Server Fault.

Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.