
NOTE: I use /home/clake as the directory name instead of just using the ~ character, because as a shell meta-character, the ~ is not always expanded so better to be safe and use a fully-qualified path for the directory:
#Install perl modules install#
Now I will download, compile and install it. line 4.Īs you can see, I cannot run my perl script because the Crypt::IDEA module is missing. line 4.īEGIN failed-compilation aborted at.

# Set up a cipher we'll need this for getting data for both My $key = "Eewooqu4otucicuquashausoghazaeth" Set up your environment variable PERLLIB to contain the directory /lib/perl5/site_perl, or add -I /lib/perl5/site_perl to the #!/usr/bin/perl line in your script.įor example, here is a short and simple perl script that uses the Crypt::IDEA module that is not installed (you don't need to understand what this perl script does, outside of the fact that it is using a module that is not installed):.Note that the perl module will be installed into /lib/perl5/site_perl, so keep that in mind when running the perl command. However, when you run perl on the Makefile.PL, append "PREFIX=" to the command line, where is the directory you are installing the module. This is normally done in a couple of easy steps: running perl on the Makefile.PL file, running make, make test and then make install. Unpack, and compile the module in a temporary directory.These instructions assume that you are going to install your perl modules into ~/lib/perl5 but you can use any directory you like. Choose a directory where you want the installed module to go.Note that we maintain a local mirror of CPAN. Find whatever module you are interested in and download it.INSTALLING PERL MODULES VIA THE COMMAND LINE Either method works, although if you are going to be installing many modules, or modules that have many dependencies, you might find using CPAN to be a big time-saver.


#Install perl modules archive#
The second uses CPAN (the Comprehensive Perl Archive Network a local mirror is available at cpan.cs.). There are two ways to go about installing perl modules in your own directory space. The first uses the command line to download, compile and install a module by hand. If a perl module is desired on a particular machine, it is easy enough to install it in your home directory, research space, or any other directory for your own use.
#Install perl modules software#
While our current Unix builds provide a ton of useful software, one instance where users might find themselves wanting additional software installed is when using perl modules that might not be installed by default. The Unix boxes in the SoC Facility, including both local desktop systems and our public interactive servers, are provided without software outside of what is provided by the operating system.
