The University of Arizona
    For questions, please open a UAService ticket and assign to the Tools Team.
Page tree
Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 5 Next »

UNDER CONSTRUCTION

 

1st Generation

There are two versions of Perl available on the htc/cluster/smp systems.

  1. Perl 5.10.1 is the default if you just want to use the system version -  perl --version
  2. Perl 5.10.1 is also the version you get with module load perl/5.10.1
  3. Perl 5.14.2 is the default module provided with module load perl

 ElGato

Perl is only installed to the operating system and is 5.10.1 -  perl --version


Ocelote

There are two versions of Perl available on Ocelote

  1. Perl 5.10.1 is the default if you just want to use the system version -  perl --version
  2. Perl 5.22.1 is the default module provided with module load perl


Perl Module Policy

We will provide a version of perl through modules and the user is expected to create their own perl environment using perl-virtualenv.

Here is a useful Perl tutorial:
http://www.tutorialspoint.com/perl/perl_modules.htm 
Additionally O'Reilly Media is a well regarded source for Perl 

Installing Perl Packages Using perl-virtualenv

One of the best things about Perl is the number of packages provided by the user community. Installing packages generally require root access and that is not a viable solution in the HPC environment.

There is an easy solution. You can use perl-virtualenv to create a personal perl environment that will persist for each time you log in.  There is no risk of packages being updated under you and now your compute fails.  Important note: virtualenv is only set up for the default version of Python which is 2.7.3

To find packages you might want to start with python.org.

  1. Set up your virtual environment.  This is done one time only and will be good for all future uses of your Python environment. 
    1. module load python which as noted above is only set up for the default version
    2. virtualenv --system-site-packages path where path is where you want your python environment. You can use "~" for your home directory.
  2. Implement the change 
    1. source path/bin/activate where path is the same as step 1.b
    2.  Append this line to your .bashrc if you want it to take effect on login.
  3. At this point you can pip install a package to your new environment for example pip install pycurl 
  4. When you log out and return later, your installed package will still be present.  If you do not do step 2.b you will have to do 2.a each time you log in.

 


 

 

  • No labels