Solved

Perl install broken

Posted on 2012-03-29
2
858 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Visualize your virtual and backup environments

Create well-organized and polished visualizations of your virtual and backup environments when planning VMware vSphere, Microsoft Hyper-V or Veeam deployments. It helps you to gain better visibility and valuable business insights.

Question has a verified solution.

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

Suggested Solutions

Little introduction about CP: CP is a command on linux that use to copy files and folder from one location to another location. Example usage of CP as follow: cp /myfoder /pathto/destination/folder/ cp abc.tar.gz /pathto/destination/folder/ab…
In the distant past (last year) I hacked together a little toy that would allow a couple of Manager types to query, preview, and extract data from a number of MongoDB instances, to their tool of choice: Excel (http://dilbert.com/strips/comic/2007-08…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

752 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