Forums

John Ruder
John Ruder
Offline
Resolved
0 votes
Let me preface everything with this: I have never worked with perl or yum before.
I tried to run a script for dynamic DNS host DNSExit:

# /usr/sbin/dnsexit-setup.pl
Can't locate Http_get.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 .) at /usr/sbin/dnsexit-setup.pl line 9.
BEGIN failed--compilation aborted at /usr/sbin/dnsexit-setup.pl line 9.


The error says I'm missing the perl module, so I tried installing it:

# perl -MCPAN -e 'install HTTP::get'
Can't locate CPAN.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 .).
BEGIN failed--compilation aborted.


Since cpan isn't present, I tried installing it:

# yum install perl-CPAN
Loaded plugins: clearcenter-marketplace, fastestmirror
ClearCenter Marketplace: fetching repositories...
Loading mirror speeds from cached hostfile
* clearos: mirror2-houston.clearsdn.com
* clearos-addons: mirror2-houston.clearsdn.com
* clearos-extras: mirror2-houston.clearsdn.com
* clearos-updates: mirror2-houston.clearsdn.com
* private-clearcenter-dyndns: download4.clearsdn.com:80
Setting up Install Process
No package perl-CPAN available.
Error: Nothing to do


So what do I need to do at this point? Do I need to add/enable a repository? If so, what repository?
Saturday, August 03 2013, 08:02 PM
Share this post:
Responses (3)
  • Accepted Answer

    Tuesday, December 17 2013, 07:44 PM - #Permalink
    Resolved
    0 votes
    It is not really broken. It is a policy decision. You can permanently enable the repo if you want. The risks are low but they are yours. I have mine permanently enabled. I think Tim does as well.
    The reply is currently minimized Show
  • Accepted Answer

    Bryon Lape
    Bryon Lape
    Offline
    Tuesday, December 17 2013, 05:29 PM - #Permalink
    Resolved
    0 votes
    Glad I came across this post. Why is this still broken?
    The reply is currently minimized Show
  • Accepted Answer

    Saturday, August 03 2013, 08:21 PM - #Permalink
    Resolved
    0 votes
    Its that dratted disabled repo again:
    yum install perl-CPAN --enablerepo=clearos-core
    The reply is currently minimized Show
Your Reply