<?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>idv2 &#187; cpan</title>
	<atom:link href="http://tech.idv2.com/tag/cpan/feed/" rel="self" type="application/rss+xml" />
	<link>http://tech.idv2.com</link>
	<description>关注Web开发技术，关注Internet。</description>
	<lastBuildDate>Tue, 27 Jul 2010 12:54:54 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.5</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>[Perl]非root用户使用CPAN</title>
		<link>http://tech.idv2.com/2009/09/16/use-cpan-in-nonroot/</link>
		<comments>http://tech.idv2.com/2009/09/16/use-cpan-in-nonroot/#comments</comments>
		<pubDate>Tue, 15 Sep 2009 16:14:28 +0000</pubDate>
		<dc:creator>charlee</dc:creator>
				<category><![CDATA[perl]]></category>
		<category><![CDATA[cpan]]></category>

		<guid isPermaLink="false">http://tech.idv2.com/2009/09/16/use-cpan-in-nonroot/</guid>
		<description><![CDATA[<!-- begin Pukiwiki generated code--><p>非root用户没有权限写 /usr/lib/perl5，所以编译Perl模块时必须将PREFIX设置到自己的主目录下。使用CPAN时可以这样设置：</p>
<p>第一次启动CPAN，执行设置时，以下问题回答 PREFIX=~/perl：</p>
<pre>Parameters for the 'perl Makefile.PL' command?
Typical frequently used settings:

    PREFIX=~/perl       non-root users (please see manual for more hints)

Your choice:  [INSTALLDIRS=site] PREFIX=~/perl</pre>
<p>然后编辑~/.bashrc，添加这样一行，然后重新登录或直接执行 source ~/.bashrc。否则CPAN中的make test会出错。</p>
<pre>export PERL5LIB=`echo ~/perl/*/perl/* | sed 's/ /:/g'`</pre>
<!-- end Pukiwiki generated code-->]]></description>
			<content:encoded><![CDATA[<!-- begin Pukiwiki generated code--><p>非root用户没有权限写 /usr/lib/perl5，所以编译Perl模块时必须将PREFIX设置到自己的主目录下。使用CPAN时可以这样设置：</p>
<p>第一次启动CPAN，执行设置时，以下问题回答 PREFIX=~/perl：</p>
<pre>Parameters for the 'perl Makefile.PL' command?
Typical frequently used settings:

    PREFIX=~/perl       non-root users (please see manual for more hints)

Your choice:  [INSTALLDIRS=site] PREFIX=~/perl</pre>
<p>然后编辑~/.bashrc，添加这样一行，然后重新登录或直接执行 source ~/.bashrc。否则CPAN中的make test会出错。</p>
<pre>export PERL5LIB=`echo ~/perl/*/perl/* | sed 's/ /:/g'`</pre>
<!-- end Pukiwiki generated code-->]]></content:encoded>
			<wfw:commentRss>http://tech.idv2.com/2009/09/16/use-cpan-in-nonroot/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
