{"id":2182,"date":"2021-10-19T15:44:06","date_gmt":"2021-10-19T22:44:06","guid":{"rendered":"https:\/\/in.nau.edu\/hpc\/?page_id=2182"},"modified":"2021-10-19T15:47:56","modified_gmt":"2021-10-19T22:47:56","slug":"perl-modules","status":"publish","type":"page","link":"https:\/\/in.nau.edu\/arc\/perl-modules\/","title":{"rendered":"Perl Modules"},"content":{"rendered":"<h1>Perl Modules<\/h1>\n<p>I tried to run a program and I get an error about a perl module.<\/p>\n<p>What do I do?<\/p>\n<p>There are myriads of perl modules available that do all sorts of tasks from connections to databases to determining the size of a dataset. For example, when running program on Monsoon, you may see the following error:<\/p>\n<pre style=\"background-color: white; margin-left: 2em; padding-left: 0.5em; border-left: 2px dotted teal; background-color: #eee\">Can't locate Devel\/Size.pm in @INC \r\n(you may need to install the Devel::Size module)<\/pre>\n<p>Notice that the error output shows that you may need to install Devel::Size. This is a perl module which may be installed locally in your account through a program called cpan. If my account name is ricky, I can enter cpan at the command prompt and I should see:<\/p>\n<pre style=\"background-color: white; margin-left: 2em; padding-left: 0.5em; border-left: 2px dotted teal; background-color: #eee\">\r\n[ricky@wind ~ ]$ cpan\r\nLoading internal null logger. Install Log::Log4perl \r\nfor logging messages\r\nTerminal does not support AddHistory.\r\n\r\ncpan shell -- CPAN exploration and modules \r\ninstallation (v2.18)\r\nEnter 'h' for help.\r\n\r\ncpan[1]> \r\n<\/pre>\n<p>I am now in the cpan shell and may install perl modules at this point. To do that I will use the install command to install the module that I am missing:<\/p>\n<pre style=\"background-color: white; margin-left: 2em; padding-left: 0.5em; border-left: 2px dotted teal; background-color: #eee\">\r\ncpan[1]> install Devel::Size\r\n<\/pre>\n<p>If everything installs correctly you should see the following when it finishes:<\/p>\n<pre style=\"background-color: white; margin-left: 2em; padding-left: 0.5em; border-left: 2px dotted teal; background-color: #eee\">\r\n  \/usr\/bin\/make install  -- OK\r\n<\/pre>\n<p>And be returned to a cpan prompt. At this point you may enter quit to return back to your normal shell prompt.<\/p>\n<p>If you run into any errors on the cpan install you will need to send an email to hpcsupport@nau.edu and please copy and paste the errors into the email. Please include a note as to what perl module you are trying to install.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Perl Modules I tried to run a program and I get an error about a perl module. What do I do? There are myriads of perl modules available that do all sorts of tasks from connections to databases to determining the size of a dataset. For example, when running program on Monsoon, you may see [&hellip;]<\/p>\n","protected":false},"author":597,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_relevanssi_hide_post":"","_relevanssi_hide_content":"","_relevanssi_pin_for_all":"","_relevanssi_pin_keywords":"","_relevanssi_unpin_keywords":"","_relevanssi_related_keywords":"","_relevanssi_related_include_ids":"","_relevanssi_related_exclude_ids":"","_relevanssi_related_no_append":"","_relevanssi_related_not_related":"","_relevanssi_related_posts":"","_relevanssi_noindex_reason":"","ring_central_script_selection":"","footnotes":""},"class_list":["post-2182","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/in.nau.edu\/arc\/wp-json\/wp\/v2\/pages\/2182","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/in.nau.edu\/arc\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/in.nau.edu\/arc\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/in.nau.edu\/arc\/wp-json\/wp\/v2\/users\/597"}],"replies":[{"embeddable":true,"href":"https:\/\/in.nau.edu\/arc\/wp-json\/wp\/v2\/comments?post=2182"}],"version-history":[{"count":15,"href":"https:\/\/in.nau.edu\/arc\/wp-json\/wp\/v2\/pages\/2182\/revisions"}],"predecessor-version":[{"id":2197,"href":"https:\/\/in.nau.edu\/arc\/wp-json\/wp\/v2\/pages\/2182\/revisions\/2197"}],"wp:attachment":[{"href":"https:\/\/in.nau.edu\/arc\/wp-json\/wp\/v2\/media?parent=2182"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}