NAME
Installing CGI::Session
INSTALLATION
You can download the latest release of the library either from http://www.CPAN.org or from http://modules.ultracgis.com/dist. The library is distributed as .tar.gz file, which is a zipped tar-ball. You can unzip and unpack the package with the following single command (% is your shell prompt):
% gzip -dc CGI-Session-2.6.tar.gz | tar -xof -
It should create a folder named the same as the distribution name except the .tar.gz
extension. If you have access to system's @INC folders ( usually if you are a super user in the system ) you should go with standard installation. Otherwise custom installation is the way to go.
STANDARD INSTALLATION
The library is installed with just like other Perl libraries, or via CPAN interactive shell (Perl -MCPAN -e install CGI::Session).
Installation can also be done by following below instructions:
After downloading the distribution,
cd
to the distribution folderIn your shell type the following commands in the order listed:
Perl Makefile.PL
make
make test
If the tests show positive results, type:
make install
CUSTOM INSTALLATION
If you do not have access to install libraries in the system folders, you should install the library in your own private folder, somewhere in your home directory. For this purpose, first choose/create a folder where you want to keep your Perl libraries. I use perllib/
under my home folder. Then install the library following the below steps:
After downloading the distribution,
cd
to the distribution folderIn your shell type the following commands in the order listed:
Perl Makefile.PL INSTALLDIRS=site INSTALLSITELIB=/home/your_folder/perllib
make
make test
If the tests show positive results, type:
make install
Then in your Perl programs do not forget to include the following line at the top of your code:
use lib "/home/your_folder/perllib";
or the following a little longer alternative works as well:
BEGIN {
unshift @INC, "/home/your_folder/perllib";
}
REVISION
$Revision: 1.2 $