Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 883
  • Last Modified:

Perl install broken

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
c3very
Asked:
c3very
1 Solution
 
PapertripCommented:
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
 
c3veryAuthor Commented:
Thanks!
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now