<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" >

<channel><title><![CDATA[Canfield Research Group LLC - On Error Do]]></title><link><![CDATA[http://www.canfield.com/on-error-do]]></link><description><![CDATA[On Error Do]]></description><pubDate>Wed, 26 Jun 2024 04:43:24 -0700</pubDate><generator>Weebly</generator><item><title><![CDATA[Percon a Toolkit Failed Dependencies perl(IO::Socket::SSL)]]></title><link><![CDATA[http://www.canfield.com/on-error-do/percon-a-toolkit-failed-dependencies-perliosocketssl]]></link><comments><![CDATA[http://www.canfield.com/on-error-do/percon-a-toolkit-failed-dependencies-perliosocketssl#comments]]></comments><pubDate>Tue, 25 Feb 2014 17:17:22 GMT</pubDate><category><![CDATA[Uncategorized]]></category><guid isPermaLink="false">http://www.canfield.com/on-error-do/percon-a-toolkit-failed-dependencies-perliosocketssl</guid><description><![CDATA[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.noarchThe 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 l [...] ]]></description><content:encoded><![CDATA[<div class="paragraph" style="text-align:left;">The Percona Toolkit for MySQL (and derivatives) can be retrieved as an RPM. If during installation (rpm -Uvh) you may receive:<ul><li><span style="line-height: 1.5;">error: Failed dependencies:<br /><span style="line-height: 1.5;">perl(IO::Socket::SSL) is needed by percona-toolkit-2.2.7-1.noarch</span><br /></span></li></ul><br /><br />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.<br /><br />Possible solutions<br /><ul><li>Using repository: yum install perl-IO-Socket-SSL</li><li>Build a new updated RPM (which can be tedious painful)</li><li>Installed IO::Socket::SSL from CPAN, override the RPM error:<br />rpm -Uvh --nodeps&nbsp;percona-toolkit-2.2.7-1.noarch</li></ul><br />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.</div>]]></content:encoded></item><item><title><![CDATA[Install CPANMinus in CentOS 6 (aka CPANM)]]></title><link><![CDATA[http://www.canfield.com/on-error-do/install-cpanminus-in-centos-6-aka-cpanm]]></link><comments><![CDATA[http://www.canfield.com/on-error-do/install-cpanminus-in-centos-6-aka-cpanm#comments]]></comments><pubDate>Mon, 24 Feb 2014 05:11:44 GMT</pubDate><category><![CDATA[Linux]]></category><category><![CDATA[Perl]]></category><guid isPermaLink="false">http://www.canfield.com/on-error-do/install-cpanminus-in-centos-6-aka-cpanm</guid><description><![CDATA[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 funhttp://search.cpan.org/~miyagawa/App-cpanminus-1.7001/bin/cpanmFor CentOS 6 and other similar RedHat/Yum systemsyum install perl-develyum install perl-CPANcurl -L http://cpanmin.us | perl - --sudo App::cpanm [...] ]]></description><content:encoded><![CDATA[<div class="paragraph" style="text-align:left;">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.<br /><br />See the following for all the fun<br /><ul><li><span style="line-height: 1.5;">http://search.cpan.org/~miyagawa/App-cpanminus-1.7001/bin/cpanm</span><br /></li></ul><br /><br /><span style="line-height: 1.5;">For CentOS 6 and other similar RedHat/Yum systems</span><br /><ul><li><span style="line-height: 1.5;">yum install perl-devel</span><br /></li><li><span style="line-height: 1.5;">yum install perl-CPAN</span><br /></li><li><span style="line-height: 1.5;">curl -L http://cpanmin.us | perl - --sudo App::cpanminus</span><br /></li><li><span style="line-height: 1.5;">Wait a few minutes as a lot is going on</span><br /></li></ul><br /><br />Example of use<br /><br /><ul><li>sudo /usr/local/bin/cpanm&nbsp;<span style="line-height: 1.5;">CGI</span><br /></li></ul><br />To make /usr/local/bin one of your search directories (do this at your own risk)<br /><br /><ul><li><span style="line-height: 1.5;">Edit ~root/.bash_profile (root is the typical CPANM user unless you install CPANM as a local user)</span><br /></li><li><span style="line-height: 1.5;">Append the following to the end of the file or anywhere you like</span><br /></li><li><span style="line-height: 1.5;"># Add local bin (mostly for CPANM)<br /><span style="line-height: 1.5;">PATH=$PATH:/usr/local/bin</span><br /></span></li></ul><br /><br /></div>]]></content:encoded></item><item><title><![CDATA[CPAN error: Compress::Zlib::gzopen undefined]]></title><link><![CDATA[http://www.canfield.com/on-error-do/cpan-error-compresszlibgzopen-undefined]]></link><comments><![CDATA[http://www.canfield.com/on-error-do/cpan-error-compresszlibgzopen-undefined#comments]]></comments><pubDate>Tue, 04 Nov 2008 17:08:45 GMT</pubDate><category><![CDATA[Archives]]></category><category><![CDATA[Linux]]></category><category><![CDATA[Perl]]></category><guid isPermaLink="false">http://www.canfield.com/on-error-do/cpan-error-compresszlibgzopen-undefined</guid><description><![CDATA[During routine maintenance I noticed that&nbsp;CPAN&nbsp;was failing operate properly and giving me an error I had not seen before. (updated 2014-02-25 with related errors seen on another system)Undefined subroutine &amp;Compress::Zlib::gzopen called at /usr/lib/perl5/5.8.8/CPAN.pm line 5721Use of uninitialized value in concatenation (.) or string at /usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi/Scalar/Util.pm line 30.(Update: The error was also seen on CentoS 5.5 while installing IO::Socket: [...] ]]></description><content:encoded><![CDATA[<div class="paragraph" style="text-align:left;">During routine maintenance I noticed that&nbsp;CPAN&nbsp;was failing operate properly and giving me an error I had not seen before. (<em>updated 2014-02-25 with related errors seen on another system</em>)<br /><ul><li>Undefined subroutine &amp;Compress::Zlib::gzopen called at /usr/lib/perl5/5.8.8/CPAN.pm line 5721</li><li>Use of uninitialized value in concatenation (.) or string at /usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi/Scalar/Util.pm line 30.</li></ul><em><br /><br /><br />(Update: The error was also seen on CentoS 5.5 while installing IO::Socket::SSL via CPAN and the fix below&nbsp;resolved&nbsp;this problem)</em><br /><br />This may have happened when I installed awstats on my CentOS5&nbsp;VPS. It grabbed a yum for Compress::Zlib. I suspect something&nbsp;odd happened and and now&nbsp;CPAN&nbsp;fails. I lack the time right now to track this down for sure and this is a production system so doing a full YUM update is something I need to avoid for a bit.<br /><span style=""></span><br /><span style=""></span>The fix is to <strong>manually</strong> bring things into compliance. Using the&nbsp;YUM&nbsp;to obtain the perl-Package-Name would probably be a good Idea but they do not appear to be quite right. The following is what I ended up doing although the path to get here felt like 2 steps forward 1 back. All files were retrieved manually from&nbsp;<a href="http://www.cpan.org/" title="" style="">www.cpan.org</a>&nbsp;via <strong>wget</strong> (use&nbsp;CPAN&nbsp;search and use the package name as the term) and then the standard Perl mantra; <strong>perl Makefile.PL, make, make test, make install</strong>. The order of installs is important! I determined the order by examining the warnings from&nbsp;perl Makefile.PL&nbsp;and&nbsp;make test.<br /><ul style=""><li style="">Scalar::Util &mdash; required because IO:Compress failed test due to XS not being in my Scalar package</li><li style="">Compress::Raw::Bzip2</li><li style="">Compress::Raw::Zlib &mdash; per Compress::Zlib makefile operation</li><li><span style="line-height: 1.5;">IO::Compress - as of 2014-02 this includes Base and Gzip, prior to that you may need to download those separate:&nbsp;</span><span style="line-height: 1.5;">IO::Compress::Base and&nbsp;IO::Compress::Gzip (<em>Note: This takes a long time for tests)</em>.</span></li></ul><ul style=""><li style=""><span style="line-height: 1.5;">Compress::Zlib &mdash; the faulty package</span><br /></li></ul>After this was done all was good and&nbsp;CPAN&nbsp;now works!<br /><span style=""></span><br /><span style=""></span></div>]]></content:encoded></item></channel></rss>