Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"

Re: CPAN install module error

by cbeckley (Curate)
on Mar 23, 2017 at 03:03 UTC ( #1185535=note: print w/replies, xml ) Need Help??

in reply to CPAN install module error

I just ran into this.
On CentOS, and other RedHat derivitives, it is recommended that you not install modules via CPAN, but rather with yum.
This is assuming you are adding modules to system Perl.

First you want to install the EPEL, as root:

# yum install epel-release

These three commands tell you what exists, what is installed, and what is available:

# yum list all # yum list installed # yum list available

Perl modules are prefixed with "perl-"

If you find the module you want from the available list, you can install it via:

# yum install -y perl-Module-I-Want

Note: Module::I::Want becomes perl-Module-I-Want via yum.

This all assumes that
a) you are root, and
b) you want to update system Perl

If either of these are not true you might want to investigate
which I have not used, but was brought to my attention by mr_mischief, and has been recommended by several other monks.

Hope that helps,

Update: Log::Log4Perl is available in the EPEL.

Replies are listed 'Best First'.
Re^2: CPAN install module error
by staszeko (Initiate) on Mar 23, 2017 at 05:26 UTC

    First, thanks to all that replied - I haven't expected so quick response.

    Second, my apology for not explaining, why I have to stick with older version of (1.7602). This installation runs on a machine which belongs to a large, international corporation. Although I do have a root access, I need to obtain business approval before any update, which practically is almost impossible.

    So, using yum as suggested by checkley seemed to be a good choice. But then I run into number of missing dependencies and when I tried to solve first of them
    # yum install -y perl-Date-Format

    I got message
    No package perl-Date-Format available.

      Cool. Just contact your supervisor of tech support and have them solve it

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1185535]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (5)
As of 2020-06-01 00:26 GMT
Find Nodes?
    Voting Booth?
    If programming languages were movie genres, Perl would be:

    Results (177 votes). Check out past polls.