Install your own Perl modules

Source: Internet
Author: User
Tags install perl virtual private server

Source:

Http://www.cnblogs.com/itech/archive/2012/12/17/2822044.html

Install your own Perl modules. When you do not have root privileges, you need to install Perl modules into your home directory.

From: http://servers.digitaldaze.com/extensions/perl/modules.html

Installing PERL5 Modules Locally

Normally, the PERL5 module installation procedure includes commands something like these:

% PERL5 makefile.pl
% make
% make Test
% make Install
% make clean

The first command, perl5 makefile.pl, directs PERL5 to create a Makefile for the new module is inst Alling. When installing a PERL5 module locally your must designate the home directory of your PERL5 installation on the CO Mmand line. That information was used by PERL5 to create the makefile. Substitute the following command for perl5 makefile.pl:

% perl5 makefile.pl prefix=/usr/home/USERNAME/usr/local

The value USERNAME above should is replaced with your Virtual Private Server Primary user account name. Installation process is:

% perl5 makefile.pl prefix=/usr/home/USERNAME/usr/local
% make
% make Test
% make Install
% make clean

For older modules it is necessary to designate several and the command line variables the module during Ion

% perl5 makefile.pl prefix=/usr/home/USERNAME/usr/local installprivlib=/usr/home/USERNAME/usr/ LOCAL/LIB/PERL5 installscript=/usr/home/USERNAME/usr/local/bin installsitelib=/usr/home/USERNAME /usr/local/lib/perl5/site_perl installbin=/usr/home/USERNAME/usr/local/bin installman1dir=/usr/ home/USERNAME/usr/local/lib/perl5/man installman3dir=/usr/home/USERNAME/usr/local/lib/perl5/ Man/man3

To save yourself some typing you can create a file and put these variable assignments above on to a file (Filename) something like this:

prefix=/usr/home/USERNAME/usr/local installprivlib=/usr/home/USERNAME/usr/local/lib/perl5 installscript=/usr/home/USERNAME/usr/local/bin installsitelib=/usr/home/USERNAME/usr/local/ Lib/perl5/site_perl installbin=/usr/home/USERNAME/usr/local/bin installman1dir=/usr/home/USERNAME /usr/local/lib/perl5/man installman3dir=/usr/home/USERNAME/usr/local/lib/perl5/man/man3

Then, each time you install a PERL5 module you can use the following syntax:

FILENAME'
% make
% make Test
% make Install
% make clean

You also can has a few different local module installation procedures, for example one for production Perl and another fo R Development:

FILENAME. Production '

Or

FILENAME. Development '

Install your own Perl modules

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.