User Tools

Site Tools


perl

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
perl [2022/08/18 23:05]
root
perl [2022/09/14 15:25] (current)
root
Line 1: Line 1:
 ==== Perl ==== ==== Perl ====
  
-Perl can be accessed by modules (currently 5.24.0,5.36.0) or you can install perl through conda [[python|python]].+Perl can be accessed by modules (currently 5.24.0,5.36.0) or you can install and modify perl through conda [[python|python]].
  
 <code> <code>
Line 8: Line 8:
 </code> </code>
  
-To install your own perl modules, you will need to tell perl where to put them and look for them in your disk area.  For example ''YAML::Syck'', adapted from [[https://kb.iu.edu/d/baiu|iu.edu]]+To install your own perl modules through cpan, you will need to tell perl where to put them and look for them in your disk area.  For example,installing ''YAML::Syck'', adapted from [[https://kb.iu.edu/d/baiu|iu.edu]]. This doesn't work with conda perl yet.  As for installing any software over the internet, use ''srun'' to get a compute node (cloud 1 core is fine and usually immediate).
 <code> <code>
-mkdir -p ~/perl5  #once+c1715:rfeynman:mkdir -p ~/perl5  #once
  
-module load perl/5.36.0 gcc/11.2.1  #it usually works better to have a more modern c compiler+c1715:rfeynman:module load perl/5.36.0 gcc/11.2.1  #it usually works better to have 
 +a more modern c compiler, c compiler only needed at install time
  
-source /share/apps/bin/localperl.sh   #always **after** loading the perl module+c1715:rfeynman:source /share/apps/bin/localperl.sh   #always **after** loading the  
 +#perl module, both install and run time
  
-perl -MCPAN -Mlocal::lib -e 'CPAN::install(YAML::Syck)'+c1715:rfeynman:$ cpanm YAML::Syck
 ...lots of output hopefully ending with... ...lots of output hopefully ending with...
   /bin/make install  -- OK   /bin/make install  -- OK
perl.1660863949.txt.gz · Last modified: 2022/08/18 23:05 by root