{"id":198,"date":"2011-04-11T13:55:24","date_gmt":"2011-04-11T18:55:24","guid":{"rendered":"http:\/\/www.popmartian.com\/tipsntricks\/?p=198"},"modified":"2011-04-11T13:55:24","modified_gmt":"2011-04-11T18:55:24","slug":"build-a-custom-perl-installation","status":"publish","type":"post","link":"https:\/\/www.popmartian.com\/tipsntricks\/2011\/04\/11\/build-a-custom-perl-installation\/","title":{"rendered":"Build A Custom PERL Installation"},"content":{"rendered":"<p>If you want to build a PERL installation that is separate from your standard PERL, you can compile one, complete with CPAN support.  Just follow these steps:<\/p>\n<ol>\n<li>mkdir \/custom\/perl\/<\/li>\n<li>cd \/custom\/perl\/<\/li>\n<li>curl -O http:\/\/www.cpan.org\/src\/perl-5.12.3.tar.gz<\/li>\n<li>mkdir perl-5_12_3<\/li>\n<li>gunzip perl-5.12.3.tar.gz<\/li>\n<li>tar -xf perl-5.12.3.tar<\/li>\n<li>cd perl-5.12.3<\/li>\n<li>.\/Configure -d -Dprefix=\/custom\/perl\/perl-5_12_3<\/li>\n<li>make<\/li>\n<li>make test<\/li>\n<li>make install<\/li>\n<li>\/custom\/perl\/perl-5_12_3\/bin\/perl -v<\/li>\n<li>\/custom\/perl\/perl-5_12_3\/bin\/perl -e &#8216;print &#8220;hello world.\\n&#8221;;&#8217;<\/li>\n<li>\/custom\/perl\/perl-5_12_3\/bin\/perl -MCPAN -e shell\n<ul>\n<li>Auto configure as much as possible.  Step 15 will edit it.<\/li>\n<\/ul>\n<\/li>\n<li>Edit \/custom\/perl\/perl-5_12_3\/lib\/5.12.3\/CPAN\/Config.pm\n<ul>\n<li>Change the following paths:<\/li>\n<li>&#8216;cpan_home&#8217; =&gt; q[\/custom\/perl\/perl-5_12_3\/cpan\/],<\/li>\n<li>&#8216;build_dir&#8217; =&gt; q[\/custom\/perl\/perl-5_12_3\/cpan\/build],<\/li>\n<li>&#8216;histfile&#8217; =&gt; q[\/custom\/perl\/perl-5_12_3\/cpan\/histfile],<\/li>\n<li>&#8216;keep_source_where&#8217; =&gt; q[\/custom\/perl\/perl-5_12_3\/cpan\/sources],<\/li>\n<li>&#8221;prefs_dir&#8217; =&gt; q[\/custom\/perl\/perl-5_12_3\/cpan\/prefs],<\/li>\n<li>&#8221;urllist&#8217; =&gt; [q[ftp:\/\/my.cpan.mirror\/pub\/cpan\/]],<\/li>\n<\/ul>\n<\/li>\n<li>Run CPAN and install Bundle::CPAN Bundle::LWP and any required packages<\/li>\n<li>tar -cvf \/custom\/perl\/custom-perl5.12.13.tar \/custom\/perl\/perl-5_12_3\/*<\/li>\n<li>gzip \/custom\/perl\/custom-perl5.12.13.tar<\/li>\n<li>Ship custom-perl5.12.13.tar.gz out to your matching architectures or mount it on a shared NAS.<\/li>\n<li>Call it with #!\/custom\/perl\/perl-5_12_3\/bin\/perl<\/li>\n<\/ol>\n<blockquote><p>Did you find this post useful or have questions or comments?  Please let  me know!<\/p><\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>If you want to build a PERL installation that is separate from your standard PERL, you can compile one, complete with CPAN support. Just follow these steps: mkdir \/custom\/perl\/ cd \/custom\/perl\/ curl -O http:\/\/www.cpan.org\/src\/perl-5.12.3.tar.gz mkdir perl-5_12_3 gunzip perl-5.12.3.tar.gz tar -xf &hellip; <a href=\"https:\/\/www.popmartian.com\/tipsntricks\/2011\/04\/11\/build-a-custom-perl-installation\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3,12,9],"tags":[],"class_list":["post-198","post","type-post","status-publish","format-standard","hentry","category-how-to-do-stuff","category-perl","category-programming"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.popmartian.com\/tipsntricks\/wp-json\/wp\/v2\/posts\/198","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.popmartian.com\/tipsntricks\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.popmartian.com\/tipsntricks\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.popmartian.com\/tipsntricks\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.popmartian.com\/tipsntricks\/wp-json\/wp\/v2\/comments?post=198"}],"version-history":[{"count":5,"href":"https:\/\/www.popmartian.com\/tipsntricks\/wp-json\/wp\/v2\/posts\/198\/revisions"}],"predecessor-version":[{"id":204,"href":"https:\/\/www.popmartian.com\/tipsntricks\/wp-json\/wp\/v2\/posts\/198\/revisions\/204"}],"wp:attachment":[{"href":"https:\/\/www.popmartian.com\/tipsntricks\/wp-json\/wp\/v2\/media?parent=198"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.popmartian.com\/tipsntricks\/wp-json\/wp\/v2\/categories?post=198"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.popmartian.com\/tipsntricks\/wp-json\/wp\/v2\/tags?post=198"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}