<?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>Connecting the dots... &#187; rocking</title>
	<atom:link href="http://blog.rajatpandit.com/tag/rocking/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.rajatpandit.com</link>
	<description>Thoughts on Web Development, Infrastructure and Application Scalability</description>
	<lastBuildDate>Thu, 29 Dec 2011 13:21:11 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>Installing modules using CPAN interactive shell in perl</title>
		<link>http://blog.rajatpandit.com/2009/01/28/installing-modules-using-cpan-interactive-shell-in-perl/</link>
		<comments>http://blog.rajatpandit.com/2009/01/28/installing-modules-using-cpan-interactive-shell-in-perl/#comments</comments>
		<pubDate>Wed, 28 Jan 2009 12:45:21 +0000</pubDate>
		<dc:creator>rp</dc:creator>
				<category><![CDATA[Web Development]]></category>
		<category><![CDATA[cpan]]></category>
		<category><![CDATA[mechanize]]></category>
		<category><![CDATA[perl]]></category>
		<category><![CDATA[rocking]]></category>

		<guid isPermaLink="false">http://blog.rajatpandit.com/?p=180</guid>
		<description><![CDATA[We have all done this, get a *.tar.gz file from cpan, do a configure, make, test and make install only to realize that the dependencies for the package are missing...]]></description>
			<content:encoded><![CDATA[<p><img src="http://blog.rajatpandit.com/wp-content/uploads/2009/01/cpan_banner.png" alt="CPAN" title="CPAN" width="264" height="77" class="alignright size-full wp-image-183" />We have all done this, get a *.tar.gz file from cpan, do a configure, make, test and make install only to realize that the dependencies for the package are missing and then going and fetching them from CPAN and downloading it again and doing the process over and over again. CPAN Shell is one of the many gems that PERL hold and this is how you use it.</p>
<p>Starting the Shell</p>
<pre class="brush: bash; title: ; notranslate">
perl -MCPAN -eshell
</pre>
<p>Note: You might want to start that command using <code>sudo</code> in case you have permission issues. This depends on your setup.</p>
<p>That shows you the shell.</p>
<pre class="brush: bash; title: ; notranslate">
cpan&gt;
</pre>
<p>Now give it the command to install (I wanted to install <code>WWW:Mechanize</code> for my little project)</p>
<pre class="brush: bash; title: ; notranslate">
cpan&gt;install WWW::Mechanize
</pre>
<p>That triggers it go and automatically fetch the package, unpack it and compile it and in the process find all the dependencies. Now this package has a hell lot of dependency and if you plan on installing it manually be prepared for a couple of really long hours. CPAN shell quite intelligent in the way it looks for dependencies and shows you what they are and asking you if it should go and fetch them for you:</p>
<pre class="brush: bash; title: ; notranslate">
Checking if your kit is complete...
Looks good
Warning: prerequisite Sub::Uplevel 0.18 not found.
Warning: prerequisite Test::Builder 0.7 not found. We have 0.32.
Warning: prerequisite Test::Builder::Tester 1.07 not found. We have 1.02.
Warning: prerequisite Test::More 0.7 not found. We have 0.62.
Warning: prerequisite Test::Simple 0.7 not found. We have 0.62.
Writing Makefile for Test::Exception
---- Unsatisfied dependencies detected during [A/AD/ADIE/Test-Exception-0.27.tar.gz] -----
    Test::More
    Test::Builder
    Sub::Uplevel
    Test::Simple
    Test::Builder::Tester
Shall I follow them and prepend them to the queue
of modules we are processing right now? [yes]
</pre>
<div id="in_post_ad_bottom_1" style="clear:both;margin:0;padding:0;"><div class="brp-bp-234">
<script type="text/javascript"><!--
google_ad_client = "ca-pub-4254382394977039";
/* brp-234x60-bp */
google_ad_slot = "7787511801";
google_ad_width = 234;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div>
<div class="brp-bp-234">
<script type="text/javascript"><!--
google_ad_client = "ca-pub-4254382394977039";
/* brp-234x60-BP-1 */
google_ad_slot = "9111022353";
google_ad_width = 234;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div></div><div style='clear:both'></div>]]></content:encoded>
			<wfw:commentRss>http://blog.rajatpandit.com/2009/01/28/installing-modules-using-cpan-interactive-shell-in-perl/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

