Solved

Perl install broken

Posted on 2012-03-29
2
849 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

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Linux users are sometimes dumbfounded by the severe lack of documentation on a topic. Sometimes, the documentation is copious, but other times, you end up with some obscure "it varies depending on your distribution" over and over when searching for …
It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

820 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