Canfield Research Group LLC
  • Home
  • Jobs
  • Blogs
    • Company
    • On Error Do
  • Contact Us
  • Projects
    • Astronomy
  • Privacy Policy

Percon a Toolkit Failed Dependencies perl(IO::Socket::SSL)

2/25/2014

1 Comment

 
The Percona Toolkit for MySQL (and derivatives) can be retrieved as an RPM. If during installation (rpm -Uvh) you may receive:
  • error: Failed dependencies:
    perl(IO::Socket::SSL) is needed by percona-toolkit-2.2.7-1.noarch


The RPM system is looking for an RPM for the IO::Socket::SSL module. This error can appear if your system is using CPAN as the source for Perl packages and not the CentOS/Redhat repositories. There are many reasons a systems administrator may be using CPAN, often it is to get the latest versions of needed packages.

Possible solutions
  • Using repository: yum install perl-IO-Socket-SSL
  • Build a new updated RPM (which can be tedious painful)
  • Installed IO::Socket::SSL from CPAN, override the RPM error:
    rpm -Uvh --nodeps percona-toolkit-2.2.7-1.noarch

The last option is what I had to use but be very cautious as this will install the package even if other dependencies are missing. Normally RPM will warn you of all missing dependencies but not always. Test things to be sure they all work.
1 Comment

Install CPANMinus in CentOS 6 (aka CPANM)

2/23/2014

2 Comments

 
CPANM is a handy little tool for quickly getting modules installed. It is a simplified version of CPAN. I like CPANM for quick tasks and it has become one of my main go to tools. I use CPAN, or manually building when I need to do unusual things or CPANM fails.

See the following for all the fun
  • http://search.cpan.org/~miyagawa/App-cpanminus-1.7001/bin/cpanm


For CentOS 6 and other similar RedHat/Yum systems
  • yum install perl-devel
  • yum install perl-CPAN
  • curl -L http://cpanmin.us | perl - --sudo App::cpanminus
  • Wait a few minutes as a lot is going on


Example of use

  • sudo /usr/local/bin/cpanm CGI

To make /usr/local/bin one of your search directories (do this at your own risk)

  • Edit ~root/.bash_profile (root is the typical CPANM user unless you install CPANM as a local user)
  • Append the following to the end of the file or anywhere you like
  • # Add local bin (mostly for CPANM)
    PATH=$PATH:/usr/local/bin


2 Comments

    On Error Do

    A blog in question/answer and problem/solution format.

    Author

    Robb Canfield, CEO of Canfield Research Group.

    Archives

    February 2014
    November 2008

    Categories

    All
    Archives
    Linux
    Perl

    RSS Feed


Copyright 2018 by Canfield Research Group LLC