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 https://perlbrew.pl/
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,
cbeckley
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 | |
by Anonymous Monk on Mar 23, 2017 at 06:48 UTC |