{"id":208,"date":"2005-09-05T08:52:35","date_gmt":"2005-09-05T13:52:35","guid":{"rendered":"https:\/\/www.suramya.com\/blog\/2005\/09\/05\/some-perl-tricks\/"},"modified":"2005-09-05T08:52:35","modified_gmt":"2005-09-05T13:52:35","slug":"some-perl-tricks","status":"publish","type":"post","link":"https:\/\/www.suramya.com\/blog\/2005\/09\/some-perl-tricks\/","title":{"rendered":"Some Perl Tricks"},"content":{"rendered":"\n<p>Installing perl modules can be a pain if you don&#8217;t have root access on the server you are installing them. However the creators of Perl did think about this and added a PREFIX switch that we can use to give the module an alternate installation directory. So to install the module in \/home\/suramya\/modules the command we would run is:<\/p>\n<p><em>perl Makefile.PL PREFIX=\/home\/suramya\/modules<\/em><\/p>\n<p>Then we follow the regular installation steps of make, make install. <\/p>\n<p>Once the module is installed we need to tell the Perl scripts where to find the new module, there are a number of ways that we can do this but the one I like is modifying the PERL5LIB enviorment variable. This method has the advantage that we don&#8217;t need to modify any of the scripts etc.<\/p>\n<p>The easiest way to modify the variable is to add a line that looks like this to your .profile or .bashrc file:<\/p>\n<p><em>PERL5LIB=\/home\/suramya\/module:\/usr\/local\/lib\/perl\/5.6.1:\/usr\/local\/share\/perl\/5.6.1:<br \/>\nexport PERL5LIB<\/em><\/p>\n<p>Hope this helps someone.<\/p>\n<p>&#8211; Suramya<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Installing perl modules can be a pain if you don&#8217;t have root access on the server you are installing them. However the creators of Perl did think about this and added a PREFIX switch that we can use to give the module an alternate installation directory. So to install the module in \/home\/suramya\/modules the command [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"activitypub_content_warning":"","activitypub_content_visibility":"","activitypub_max_image_attachments":3,"activitypub_interaction_policy_quote":"anyone","activitypub_status":"","footnotes":""},"categories":[14],"tags":[],"class_list":["post-208","post","type-post","status-publish","format-standard","hentry","category-tutorials"],"_links":{"self":[{"href":"https:\/\/www.suramya.com\/blog\/wp-json\/wp\/v2\/posts\/208","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.suramya.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.suramya.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.suramya.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.suramya.com\/blog\/wp-json\/wp\/v2\/comments?post=208"}],"version-history":[{"count":0,"href":"https:\/\/www.suramya.com\/blog\/wp-json\/wp\/v2\/posts\/208\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.suramya.com\/blog\/wp-json\/wp\/v2\/media?parent=208"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.suramya.com\/blog\/wp-json\/wp\/v2\/categories?post=208"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.suramya.com\/blog\/wp-json\/wp\/v2\/tags?post=208"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}