Quickly install perl module Net::Amazon::S3 and all its dependencies

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’ll be in mess because you have check around 66 different modules.

Here is a single command which will install the module and all of its dependecies (known upto the date of this article). I’ve tested this several times in CentOS 5.x boxes but I dont guarantee that it’ll also work seamlessly for you as well:

Download, install and configure perl GeoIP module manually

After a try to install perl Geo::IP through cpan, and spending some moments to resovle error about missing C api library etc. I’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 at the point of your reading, therefore, you should visit the relevant site and fetch latest one.

Step 1. Download, compile and install maxmind’s C API:

# cd /usr/src
# wget http://www.maxmind.com/download/geoip/api/c/GeoIP-1.4.3.tar.gz
# tar xzf GeoIP-1.4.3.tar.gz
# cd GeoIP-1.4.3
# ./configure; make; make install

Quickly fix perl Undefined subroutine &LWP::Debug::trace issue

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 &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 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 here.

Install perl Net::SFTP module in linux

When installing perl Net::SFTP module in CentOS 5 box:

# perl -MCPAN -e 'install Net::SSH::Perl'

It got stuck at:

t/01-compile.t…..ok
t/02-buffer.t……ok
t/03-packet.t……1/10

then I tried installation with force so that it can skip tests if any of them failed:

# perl -MCPAN -e 'force install Net::SSH::Perl'

The module seems installed ok but while using in a script, error occured:
Can’t locate Net/SSH/Perl/Buffer.pm in @INC …

that means, the module still not installed/configured properly. To get it done, I searched for rpms and found rpmforge repository http://dag.wieers.com/rpm/packages/rpmforge-release/ have all the sufficient rpms:

Get Adobe Flash playerPlugin by wpburn.com wordpress themes