Solved

Perl install broken

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

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Steps to follow for Maintenance of Servers 4 63
VMware Workstation 12 Player 16 74
AWS Central Authentication 1 61
Remote desktop Ubuntu from Windows 10 5 63
Using 'screen' for session sharing, The Simple Edition Step 1: user starts session with command: screen Step 2: other user (logged in with same user account) connects with command: screen -x Done. Both users are connected to the same CLI sessio…
There are many situations when we need to display the data in sorted order. For example: Student details by name or by rank or by total marks etc. If you are working on data driven based projects then you will use sorting techniques very frequently.…
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.:
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

772 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