Solved

Perl install broken

Posted on 2012-03-29
2
829 Views
Last Modified: 2012-06-21
We've been using a CentOS 5.7 server and i'm trying to get some additional perl modules installed.  No matter what i try, either trying to install the modules within perl or manually i always run into errors.

Here is just an example but the rest of the modules i'm trying to install are having the same error

[root@Opsview# perl -MCPAN -e 'install Crypt::SSLeay'
Reading '/root/.cpan/Metadata'
  Database was generated on Tue, 20 Mar 2012 06:17:46 GMT
Fetching with LWP:
http://cpan.knowledgematters.net/authors/01mailrc.txt.gz
CPAN::LWP::UserAgent->new dies with Can't locate HTTP/Config.pm in @INC (@INC contains: /usr/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl /usr/lib64/perl5/vendor_perl/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.8 /usr/lib/perl5/vendor_perl /usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/5.8.8 /tmp/Crypt-SSLeay-0.58) at /usr/lib/perl5/site_perl/5.8.8/LWP/UserAgent.pm line 770.

Can't call method "mirror" on an undefined value at /usr/lib/perl5/5.8.8/CPAN/FTP.pm line 633.

Open in new window


Not sure where to go from here.
0
Comment
Question by:c3very
2 Comments
 
LVL 21

Accepted Solution

by:
Papertrip earned 500 total points
ID: 37784610
You can use yum to manage perl modules.  If you know the name of the module you can use the search option then use the install option to install it.  Most modules in yum follow the same naming convention and are easy to find.

yum search SSLeay
yum install perl-Crypt-SSLeay

Open in new window


If you get multiple results and aren't sure which is the correct one, use yum info on the package names.

[papertrip@broken ~]$ yum info perl-Crypt-SSLeay
Loaded plugins: fastestmirror, presto, priorities
Loading mirror speeds from cached hostfile
 * base: mirrors.usc.edu
 * epel: www.gtlib.gatech.edu
 * extras: mirrors.gigenet.com
 * rpmforge: fr2.rpmfind.net
 * updates: centos-distro.cavecreek.net
85 packages excluded due to repository priority protections
Available Packages
Name        : perl-Crypt-SSLeay
Arch        : x86_64
Version     : 0.57
Release     : 16.el6
Size        : 139 k
Repo        : base
Summary     : Crypt::SSLeay - OpenSSL glue that provides LWP https support
URL         : http://search.cpan.org/dist/Crypt-SSLeay/
License     : GPL+ or Artistic
Description : This perl module provides support for the https protocol under LWP, so
            : that a LWP::UserAgent can make https GET & HEAD & POST
            : requests. Please see perldoc LWP for more information on POST
            : requests.
            : 
            : The Crypt::SSLeay package contains Net::SSL, which is automatically
            : loaded by LWP::Protocol::https on https requests, and provides the
            : necessary SSL glue for that module to work.

Open in new window

0
 
LVL 2

Author Closing Comment

by:c3very
ID: 37784636
Thanks!
0

Featured Post

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

Email validation in proper way is  very important validation required in any web pages. This code is self explainable except that Regular Expression which I used for pattern matching. I originally published as a thread on my website : http://www…
The purpose of this article is to demonstrate how we can use conditional statements using Python.
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now