Showing posts with label Perl module installation. Show all posts
Showing posts with label Perl module installation. Show all posts

Thursday, August 13, 2015

Install the Perl module

August 13, 2015 0
Unable to install a perl module and through below error:

Looking for CPAN mirrors near you (please be patient)
Can't locate Time/HiRes.pm in @INC (@INC contains: /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 /OBD/OBRT) at /usr/share/perl5/Net/Ping.pm line 313.

Needs to install perl-Time-HiRes.x86_64 4:1.9725-3.el7 package to fix this issue

[root@localhost OBRT]# yum install perl-Time-HiRes
Loaded plugins: product-id, subscription-manager
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
Resolving Dependencies
--> Running transaction check
---> Package perl-Time-HiRes.x86_64 4:1.9725-3.el7 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

==============================================================================================================================
 Package                          Arch                    Version                            Repository                  Size
==============================================================================================================================
Installing:
 perl-Time-HiRes                  x86_64                  4:1.9725-3.el7                     rhel7_dvd                   45 k

Transaction Summary
==============================================================================================================================
Install  1 Package

Total download size: 45 k
Installed size: 92 k
Is this ok [y/d/N]: yes
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : 4:perl-Time-HiRes-1.9725-3.el7.x86_64                                                                      1/1
  Verifying  : 4:perl-Time-HiRes-1.9725-3.el7.x86_64                                                                      1/1

Installed:
  perl-Time-HiRes.x86_64 4:1.9725-3.el7

Complete!

2) Install the DBI module 

[root@localhost OBRT]# cpan install DBI