Installing the Five CPAN Perl Modules
Dowload each of the required CPAN Perl modules. The first three are regular CPAN
modules so get them directly from there. For these, I've listed the last version
of the module that I've tested with. The version on CPAN may be more recent. The
last two modules are not available on CPAN, so download directly
below.
For each of the modules, the steps for installing are basically the same.
Unpack the distribution file:
gunzip <module-name>.tar.gz
tar xvf <module-name>.tar
cd <module-name>
Assuming you just followed the steps above, and you're now in one of the distribution directories. If you have root permission and you just want the module to be installed in the default place, type:
perl Makefile.PL
However, if you don't have permission to install in the perl installatin itself,
or you want to install someplace else, you need to specify non-default location
like this:
perl Makefile.PL PREFIX=/path/to/local/install
While building Term::ReadLine::GNU , if you want to use a specially
built readline library and install the module in a non-default place, you
need to combine the arguments:
like this:
perl Makefile.PL PREFIX=/path/to/local/install --prefix=/prefix/of/readline/library
To reiterate, if you decide to install in a non-default place using the above
notation, it's very important that you use the same PREFIX
argument for all the modules! SPP will not work if you don't.
After the perl Makefile.PL command has completed, type the following commands:
make
make install
It's very important to remember the make install command or else
the module will never be installed!
|