<?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/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Linux Admin Zone &#187; perl</title>
	<atom:link href="http://linuxadminzone.com/category/perl/feed/" rel="self" type="application/rss+xml" />
	<link>http://linuxadminzone.com</link>
	<description>Adding more reasons to celebrate Open Source.</description>
	<lastBuildDate>Wed, 09 May 2012 10:17:54 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>Quickly install perl module Net::Amazon::S3 and all its dependencies</title>
		<link>http://linuxadminzone.com/quickly-install-perl-module-netamazons3-and-all-its-dependencies/</link>
		<comments>http://linuxadminzone.com/quickly-install-perl-module-netamazons3-and-all-its-dependencies/#comments</comments>
		<pubDate>Mon, 25 May 2009 12:13:41 +0000</pubDate>
		<dc:creator>jagbir</dc:creator>
				<category><![CDATA[AWS]]></category>
		<category><![CDATA[perl]]></category>
		<category><![CDATA[Net Amazon S3]]></category>
		<category><![CDATA[S3]]></category>

		<guid isPermaLink="false">http://linuxadminzone.com/?p=122</guid>
		<description><![CDATA[Net::Amazon::S3 is the standard perl module to interact with Amazon S3 service using perl scripts. If you ever tried to install it, you may well aware about its gigantic dependecies on other modules which must be installed correctly. If anything goes wrong, you&#8217;ll be in mess because you have check around 66 different modules. Here [...]]]></description>
			<content:encoded><![CDATA[<p>Net::Amazon::S3 is the standard perl module to interact with Amazon S3 service using perl scripts. If you ever tried to install it, you may well aware about its gigantic dependecies on other modules which must be installed correctly. If anything goes wrong, you&#8217;ll be in mess because you have check around 66 different modules.</p>
<p>Here is a single command which will install the module and all of its dependecies (known upto the date of this article). I&#8217;ve tested this several times in CentOS 5.x boxes but I dont guarantee that it&#8217;ll also work seamlessly for you as well:</p>
<blockquote><p># cpan Net::Amazon::S3 DateTime::Format::ISO8601 DateTime Scalar::Util ExtUtils::MakeMaker Pod::Man Test::More DateTime::TimeZone Class::Singleton Params::Validate Attribute::Handlers Module::Build Cwd DateTime::Locale Class::ISA List::MoreUtils Time::Local DateTime::Format::Builder DateTime::Format::Strptime Class::Factory::Util Task::Weaken DateTime::Format::HTTP HTTP::Date Compress::Zlib Net::FTP URI MIME::Base64 HTML::Tagset HTML::Parser XSLoader Digest::MD5 Class::Accessor::Fast base XML::LibXML::XPathContext XML::SAX XML::NamespaceSupport File::Temp XML::LibXML::Common Digest::MD5::File Regexp::Common MooseX::StrictConstructor Moose Test::Exception Test::Harness Sub::Uplevel Carp Class::MOP Sub::Name Devel::GlobalDestruction Scope::Guard Sub::Exporter Params::Util Sub::Install Data::OptList MRO::Compat Class::C3 Algorithm::C3 Data::Stream::Bulk::Callback namespace::clean B::Hooks::EndOfScope Variable::Magic Exporter Test::use::ok IO::File MooseX::Types::DateTimeX Digest::HMAC_SHA1 LWP::UserAgent::Determined</p></blockquote>
<p>After the successful running of above command, issue the next command to check which version of module has been installed in you server: </p>
<blockquote><p>
# perl -e &#8216;use Net::Amazon::S3; print $Net::Amazon::S3::VERSION.&#8221;\n&#8221;&#8216;<br />
0.51</p></blockquote>
<p>You should be able to get the version number. If there&#8217;s still an issue, you&#8217;ve to dig around and in that case <a href="http://deps.cpantesters.org/?module=Net::Amazon::S3;perl=latest">this</a> may help you out. </p>
]]></content:encoded>
			<wfw:commentRss>http://linuxadminzone.com/quickly-install-perl-module-netamazons3-and-all-its-dependencies/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Download, install and configure perl GeoIP module manually</title>
		<link>http://linuxadminzone.com/download-install-and-configure-perl-geoip-module-manually/</link>
		<comments>http://linuxadminzone.com/download-install-and-configure-perl-geoip-module-manually/#comments</comments>
		<pubDate>Fri, 03 Apr 2009 07:39:37 +0000</pubDate>
		<dc:creator>jagbir</dc:creator>
				<category><![CDATA[perl]]></category>
		<category><![CDATA[geoip]]></category>

		<guid isPermaLink="false">http://linuxadminzone.com/?p=93</guid>
		<description><![CDATA[After a try to install perl Geo::IP through cpan, and spending some moments to resovle error about missing C api library etc. I&#8217;ve opted for manual install which goes quite smooth. Here are the steps which I followed on my CentOS 5.2 server. Please note that the version of software mentioned here might be outdated [...]]]></description>
			<content:encoded><![CDATA[<p>After a try to install perl Geo::IP through cpan, and spending some moments to resovle error about missing C api library etc. I&#8217;ve opted for manual install which goes quite smooth. </p>
<p>Here are the steps which I followed on my CentOS 5.2 server. Please note that the version of software mentioned here might be outdated at the point of your reading, therefore, you should visit the relevant site and fetch latest one.  </p>
<p>Step 1. Download, compile and install maxmind&#8217;s C API: </p>
<blockquote><p># cd /usr/src<br />
# wget http://www.maxmind.com/download/geoip/api/c/GeoIP-1.4.3.tar.gz<br />
# tar xzf GeoIP-1.4.3.tar.gz<br />
# cd GeoIP-1.4.3<br />
# ./configure; make; make install</p></blockquote>
<p>Step 2. Download, compile and install the module: </p>
<blockquote><p># cd /usr/src<br />
# wget http://search.cpan.org/CPAN/authors/id/B/BO/BORISZ/Geo-IP-1.35.tar.gz<br />
# tar xzf Geo-IP-1.35.tar.gz<br />
# cd Geo-IP-1.35<br />
# perl Makefile.PL LIBS=&#8217;-L/usr/local/lib&#8217; INC=&#8217;-L/usr/local/include&#8217;<br />
# make ; make install </p></blockquote>
<p>here, we need to specify the path for library and header files so that module can include them. Module is installed and ready for use. </p>
<p>If you have purchased a subscription to update GeoIPCity database reguarly, proceed to next step.<br />
(Optional) Step 3. Configure subscription information to update Geo::IP database regularly: </p>
<blockquote><p># vim /usr/local/etc/GeoIP.conf<br />
	## add following lines, replace proper values:<br />
	LicenseKey YOUR-LICENCE-KEY<br />
	UserId YOUR-USERID<br />
	ProductIds PRODUCT-ID  # usually the value 133 represent Geo::IP module</p></blockquote>
<p>Save, exit and then execute update to fetch latest database:</p>
<blockquote><p># /usr/local/bin/geoipupdate</p></blockquote>
<p>It&#8217;s better to setup cron to update Geo::IP database on weekly basis:</p>
<blockquote><p># crontab -e<br />
	0 12 * * 6 /usr/local/bin/geoipupdate
</p></blockquote>
<p>That&#8217;s all we need to setup Geo::IP module.</p>
]]></content:encoded>
			<wfw:commentRss>http://linuxadminzone.com/download-install-and-configure-perl-geoip-module-manually/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Quickly fix perl Undefined subroutine &amp;LWP::Debug::trace issue</title>
		<link>http://linuxadminzone.com/quickly-fix-perl-undefined-subroutine-lwpdebugtrace-issue/</link>
		<comments>http://linuxadminzone.com/quickly-fix-perl-undefined-subroutine-lwpdebugtrace-issue/#comments</comments>
		<pubDate>Tue, 23 Dec 2008 12:26:49 +0000</pubDate>
		<dc:creator>jagbir</dc:creator>
				<category><![CDATA[perl]]></category>
		<category><![CDATA[Troubleshooting]]></category>

		<guid isPermaLink="false">http://linuxadminzone.com/?p=32</guid>
		<description><![CDATA[I installed required modules in one Fedora 8 and one CentOS 5.2 boxes to interact with Amazon SQS and S3 services and build a perl script. When trying to start perl script, following error encountered: Undefined subroutine &#38;amp;LWP::Debug::trace called at /usr/lib/perl5/site_perl/5.8.8/LWP/UserAgent/Determined.pm line 21. Force Re-installation of LWP::UserAgent::Determined module does not avail anything. Then after some [...]]]></description>
			<content:encoded><![CDATA[<p>I installed required modules in one Fedora 8 and one CentOS 5.2 boxes to interact with Amazon SQS and S3 services and build a perl script. When trying to start perl script, following error encountered:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">Undefined subroutine <span style="color: #000000; font-weight: bold;">&amp;</span>amp;LWP::Debug::trace called at <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>perl5<span style="color: #000000; font-weight: bold;">/</span>site_perl<span style="color: #000000; font-weight: bold;">/</span>5.8.8<span style="color: #000000; font-weight: bold;">/</span>LWP<span style="color: #000000; font-weight: bold;">/</span>UserAgent<span style="color: #000000; font-weight: bold;">/</span>Determined.pm line <span style="color: #000000;">21</span>.</pre></div></div>

<p>Force Re-installation of LWP::UserAgent::Determined module does not avail anything.</p>
<p>Then after some research, I came to know that the perl libwww-perl version 5.822 is culprit here. And the strange thing is that the updated version (5.822) causes problems while downgraded version (5.821) works fine. This bug is already reported <a href="http://72.14.235.104/translate_c?hl=en&amp;sl=ja&amp;u=http://rt.cpan.org/Public/Bug/Display.html%3Fid%3D41508&amp;prev=/search%3Fq%3DUndefined%2Bsubroutine%2B%2526LWP::Debug::trace%26hl%3Den%26sa%3DG&amp;usg=ALkJrhih-20vQALW1IB_2PWNhSP8yVm8Lw">here. </a></p>
<p>To quickly fix the error, download and install 5.821 version:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">$ <span style="color: #c20cb9; font-weight: bold;">wget</span> http:<span style="color: #000000; font-weight: bold;">//</span>search.cpan.org<span style="color: #000000; font-weight: bold;">/</span>CPAN<span style="color: #000000; font-weight: bold;">/</span>authors<span style="color: #000000; font-weight: bold;">/</span>id<span style="color: #000000; font-weight: bold;">/</span>G<span style="color: #000000; font-weight: bold;">/</span>GA<span style="color: #000000; font-weight: bold;">/</span>GAAS<span style="color: #000000; font-weight: bold;">/</span>libwww-perl-<span style="color: #000000;">5.821</span>.tar.gz
$ <span style="color: #c20cb9; font-weight: bold;">tar</span> xzf libwww-perl-<span style="color: #000000;">5.821</span>.tar.gz
$ <span style="color: #7a0874; font-weight: bold;">cd</span> libwww-perl-<span style="color: #000000;">5.821</span>
$ <span style="color: #c20cb9; font-weight: bold;">perl</span> Makefile.PL
$ <span style="color: #c20cb9; font-weight: bold;">make</span>
$ <span style="color: #c20cb9; font-weight: bold;">make</span> <span style="color: #c20cb9; font-weight: bold;">install</span></pre></div></div>

<p>The issue has been resolved.</p>
<p>You may also like to read:<br />
* <a href="http://linuxadminzone.com/5-steps-to-secure-your-linux-server/"> 5 steps to secure your Linux Server </a><br />
* <a href="http://linuxadminzone.com/ensuring-secure-access-to-production-linux-servers/"> Ensuring secure access to production Linux Servers </a><br />
* <a href="http://linuxadminzone.com/bash-script-to-backup-essential-log-files-of-linux-server/"> Bash script to backup essential log files in Linux </a><br />
* <a href="http://linuxadminzone.com/quickly-change-your-ssh-port-from-default-22-to-something-higher/"> Quickly change your ssh port from defualt 22 to something higher </a><br />
* <a href="http://linuxadminzone.com/ssh-port-forwarding-from-remote-to-local-machine/"> SSH port forwarding from remote to local machine </a><br />
* <a href="http://linuxadminzone.com/save-root-or-user-history-to-check-later/"> Save root or user history to check later </a><br />
* <a href="http://linuxadminzone.com/install-and-configure-denyhost/"> Install and configure denyhost to prevent brute force attacks </a></p>
]]></content:encoded>
			<wfw:commentRss>http://linuxadminzone.com/quickly-fix-perl-undefined-subroutine-lwpdebugtrace-issue/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

