<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>
<channel>
	<title>Comments on: Install Perl Modules without root</title>
	<atom:link href="http://journal.naveeng.com/2007/10/16/install-perl-modules-without-root/feed/" rel="self" type="application/rss+xml" />
	<link>http://journal.naveeng.com/2007/10/16/install-perl-modules-without-root/</link>
	<description>Enter the Geekdom</description>
	<pubDate>Sat, 22 Nov 2008 12:53:46 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6</generator>
		<item>
		<title>By: Naveen</title>
		<link>http://journal.naveeng.com/2007/10/16/install-perl-modules-without-root/#comment-142</link>
		<dc:creator>Naveen</dc:creator>
		<pubDate>Wed, 16 Jul 2008 16:45:00 +0000</pubDate>
		<guid isPermaLink="false">http://journal.naveeng.com/2007/10/16/install-perl-modules-without-root/#comment-142</guid>
		<description>First, my sincere apologies for not being able to reply to your message for so long. In most likelihood, you have not given full absolute path of the perl library you're trying to include, hence it's having problems in cron. If you still have this problem open, you can post the exact statements which you use, and I can have a look at it.</description>
		<content:encoded><![CDATA[<p>First, my sincere apologies for not being able to reply to your message for so long. In most likelihood, you have not given full absolute path of the perl library you&#8217;re trying to include, hence it&#8217;s having problems in cron. If you still have this problem open, you can post the exact statements which you use, and I can have a look at it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ned</title>
		<link>http://journal.naveeng.com/2007/10/16/install-perl-modules-without-root/#comment-140</link>
		<dc:creator>Ned</dc:creator>
		<pubDate>Tue, 24 Jun 2008 11:20:57 +0000</pubDate>
		<guid isPermaLink="false">http://journal.naveeng.com/2007/10/16/install-perl-modules-without-root/#comment-140</guid>
		<description>Does this work in crons?
I used your approach, however, my script doesn't run in the cron - for manual run, it does work fine.

Thanks,
Ned</description>
		<content:encoded><![CDATA[<p>Does this work in crons?<br />
I used your approach, however, my script doesn&#8217;t run in the cron - for manual run, it does work fine.</p>
<p>Thanks,<br />
Ned</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Naveen</title>
		<link>http://journal.naveeng.com/2007/10/16/install-perl-modules-without-root/#comment-78</link>
		<dc:creator>Naveen</dc:creator>
		<pubDate>Sat, 15 Dec 2007 17:30:21 +0000</pubDate>
		<guid isPermaLink="false">http://journal.naveeng.com/2007/10/16/install-perl-modules-without-root/#comment-78</guid>
		<description>&lt;blockquote&gt;very interesting, but I don’t agree with you
Idetrorce
&lt;/blockquote&gt;

Don't agree with what exactly? If you can explain Idetrorce.</description>
		<content:encoded><![CDATA[<blockquote><p>very interesting, but I don’t agree with you<br />
Idetrorce
</p></blockquote>
<p>Don&#8217;t agree with what exactly? If you can explain Idetrorce.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Naveen</title>
		<link>http://journal.naveeng.com/2007/10/16/install-perl-modules-without-root/#comment-44</link>
		<dc:creator>Naveen</dc:creator>
		<pubDate>Wed, 17 Oct 2007 17:40:32 +0000</pubDate>
		<guid isPermaLink="false">http://journal.naveeng.com/2007/10/16/install-perl-modules-without-root/#comment-44</guid>
		<description>&lt;blockquote&gt;There is another way to do this:
use lib ‘./lib’;
Using the lib module takes away the need for a BEGIN block and is considered a better practice.  You can add multiple directories to @INC by providing lib a list as well:
use lib qw(./lib ./project_lib);
You may want to consider fully qualified paths as well.
The PERL5LIB environment variable is handy as well to avoid the problem as well.  People should know though that if you are running this on a server PERL5LIB won’t work if you are running Perl as CGI under suexec (common on shared web hosts).  Although I haven’t tried it, if you have the ability to edit your .htaccess files (apache config overrides file) you could probably do a:
SetEnv PERL5LIB ./lib;./project_lib;
To set that up in the server’s environment which executes the script.  Not sure if that’ll work though.
It’s also worth noting that if you have shell access on a shared webhost you can install your own CPAN modules above and beyond what the server has by creating your own Perl modules directory.  Dreamhost has a nifty article on their wiki on how to do this.  It works pretty well though you may wish to avoid messing with the DBI (often they’re older and newer versions may not compile).  You can see their article on the matter at:
&lt;a href="http://wiki.dreamhost.com/CPAN" rel="nofollow"&gt;http://wiki.dreamhost.com/CPAN&lt;/a&gt;
I’m sure the directions can be pretty easily adapted to other hosts.
&lt;/blockquote&gt;

Hi Dave,
Thanks for the lovely insight and detailed explanations above. Yes I know about the &lt;b&gt;use lib&lt;/b&gt; approach but was no quite sure which one is better. Thanks again for the same.</description>
		<content:encoded><![CDATA[<blockquote><p>There is another way to do this:<br />
use lib ‘./lib’;<br />
Using the lib module takes away the need for a BEGIN block and is considered a better practice.  You can add multiple directories to @INC by providing lib a list as well:<br />
use lib qw(./lib ./project_lib);<br />
You may want to consider fully qualified paths as well.<br />
The PERL5LIB environment variable is handy as well to avoid the problem as well.  People should know though that if you are running this on a server PERL5LIB won’t work if you are running Perl as CGI under suexec (common on shared web hosts).  Although I haven’t tried it, if you have the ability to edit your .htaccess files (apache config overrides file) you could probably do a:<br />
SetEnv PERL5LIB ./lib;./project_lib;<br />
To set that up in the server’s environment which executes the script.  Not sure if that’ll work though.<br />
It’s also worth noting that if you have shell access on a shared webhost you can install your own CPAN modules above and beyond what the server has by creating your own Perl modules directory.  Dreamhost has a nifty article on their wiki on how to do this.  It works pretty well though you may wish to avoid messing with the DBI (often they’re older and newer versions may not compile).  You can see their article on the matter at:<br />
<a href="http://wiki.dreamhost.com/CPAN" rel="nofollow">http://wiki.dreamhost.com/CPAN</a><br />
I’m sure the directions can be pretty easily adapted to other hosts.
</p></blockquote>
<p>Hi Dave,<br />
Thanks for the lovely insight and detailed explanations above. Yes I know about the <b>use lib</b> approach but was no quite sure which one is better. Thanks again for the same.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dave Doyle</title>
		<link>http://journal.naveeng.com/2007/10/16/install-perl-modules-without-root/#comment-43</link>
		<dc:creator>Dave Doyle</dc:creator>
		<pubDate>Wed, 17 Oct 2007 14:07:24 +0000</pubDate>
		<guid isPermaLink="false">http://journal.naveeng.com/2007/10/16/install-perl-modules-without-root/#comment-43</guid>
		<description>There is another way to do this:

use lib './lib';

Using the lib module takes away the need for a BEGIN block and is considered a better practice.  You can add multiple directories to @INC by providing lib a list as well:

use lib qw(./lib ./project_lib);

You may want to consider fully qualified paths as well.

The PERL5LIB environment variable is handy as well to avoid the problem as well.  People should know though that if you are running this on a server PERL5LIB won't work if you are running Perl as CGI under suexec (common on shared web hosts).  Although I haven't tried it, if you have the ability to edit your .htaccess files (apache config overrides file) you could probably do a:

SetEnv PERL5LIB ./lib;./project_lib;

To set that up in the server's environment which executes the script.  Not sure if that'll work though.

It's also worth noting that if you have shell access on a shared webhost you can install your own CPAN modules above and beyond what the server has by creating your own Perl modules directory.  Dreamhost has a nifty article on their wiki on how to do this.  It works pretty well though you may wish to avoid messing with the DBI (often they're older and newer versions may not compile).  You can see their article on the matter at:

http://wiki.dreamhost.com/CPAN

I'm sure the directions can be pretty easily adapted to other hosts.</description>
		<content:encoded><![CDATA[<p>There is another way to do this:</p>
<p>use lib &#8216;./lib&#8217;;</p>
<p>Using the lib module takes away the need for a BEGIN block and is considered a better practice.  You can add multiple directories to @INC by providing lib a list as well:</p>
<p>use lib qw(./lib ./project_lib);</p>
<p>You may want to consider fully qualified paths as well.</p>
<p>The PERL5LIB environment variable is handy as well to avoid the problem as well.  People should know though that if you are running this on a server PERL5LIB won&#8217;t work if you are running Perl as CGI under suexec (common on shared web hosts).  Although I haven&#8217;t tried it, if you have the ability to edit your .htaccess files (apache config overrides file) you could probably do a:</p>
<p>SetEnv PERL5LIB ./lib;./project_lib;</p>
<p>To set that up in the server&#8217;s environment which executes the script.  Not sure if that&#8217;ll work though.</p>
<p>It&#8217;s also worth noting that if you have shell access on a shared webhost you can install your own CPAN modules above and beyond what the server has by creating your own Perl modules directory.  Dreamhost has a nifty article on their wiki on how to do this.  It works pretty well though you may wish to avoid messing with the DBI (often they&#8217;re older and newer versions may not compile).  You can see their article on the matter at:</p>
<p><a href="http://wiki.dreamhost.com/CPAN" rel="nofollow">http://wiki.dreamhost.com/CPAN</a></p>
<p>I&#8217;m sure the directions can be pretty easily adapted to other hosts.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
