User Tools

Site Tools


set_up_your_own_perl_module_library

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
set_up_your_own_perl_module_library [2020/09/17 21:30] – add backlink peteyboyset_up_your_own_perl_module_library [2020/09/19 22:35] (current) – added missing first step for perl peteyboy
Line 1: Line 1:
 ====== Set up a private Perl Module library for Your User Space ====== ====== Set up a private Perl Module library for Your User Space ======
  
-Nowadays, it's common for people providing programs or scripts to assume everyone's an admin, and can load whatever library or do whatever admin-level install they need to. All their installation instructions assume you can just install files to ///usr/local/lib// and such. Well as an SDF user on the cluster or Metaarray, you can't do this, so you need to figure out how to install these things '''not as admin''' (which used to be pretty common knowledge).+Nowadays, it's common for people providing programs or scripts to assume everyone's an admin, and can load whatever library or do whatever admin-level install they need to do. All their installation instructions assume you can just install files to ///usr/local/lib// and such. Well as an SDF user on the cluster or Metaarray, you can't do this, so you need to figure out how to install these things '''not as admin''' (which used to be pretty common knowledge).
  
 For perl programs, ''cpanm'' is a perl package manager that's already installed on SDF. Run each of the lines below to create a personal perl module library to be able to add modules that may be missing when you try to run some perl scripts you wrote or obtained. For perl programs, ''cpanm'' is a perl package manager that's already installed on SDF. Run each of the lines below to create a personal perl module library to be able to add modules that may be missing when you try to run some perl scripts you wrote or obtained.
  
 <code bash> <code bash>
 +curl http://cpanmin.us | perl - -l ~/perl5 App::cpanminus local::lib
 eval `perl -I ~/perl5/lib/perl5 -Mlocal::lib` eval `perl -I ~/perl5/lib/perl5 -Mlocal::lib`
 echo 'eval `perl -I ~/perl5/lib/perl5 -Mlocal::lib`' >> ~/.profile echo 'eval `perl -I ~/perl5/lib/perl5 -Mlocal::lib`' >> ~/.profile
Line 14: Line 15:
  
 ''cpanm Text::Markdown'' ''cpanm Text::Markdown''
-[[customize_your_sdf_shell_experience|Common Configurations for Programs]] 
  
  
 ---- ----
  
-You can find more tips like this at: +You can find more tips like this at:  [[customize_your_sdf_shell_experience|Common Configurations for Programs]]
  
set_up_your_own_perl_module_library.1600378212.txt.gz · Last modified: 2020/09/17 21:30 by peteyboy