Install Perl modules from CPAN

Moderator: cah

Post Reply
cah
General of the Army / Fleet Admiral / General of the Air Force
General of the Army / Fleet Admiral / General of the Air Force
Posts: 1342
Joined: Sun Aug 17, 2008 5:05 am

Install Perl modules from CPAN

Post by cah »

Using CPAN Interactive shell

This method connects to CPAN via internet and retrieves the perl modules you specify and then creates the Makefile, compiles, run the test(s) and finally installs for you.

Code: Select all

    % perl -MCPAN -e shell
    cpan> install CGI::Session
Using Makefile.PL

If you decide to get the source packages manually, you can run the following steps manually to have the first-hand experience for each step.

Code: Select all

    % perl Makefile.PL
    % make
    % make test
    % make install
CAH, The Great
Post Reply