On Wed, 19 Jan 2000, Denver wrote:
> Ohh man..I'm really really sorry, should have double checked before sending
> my email...doh! Anyway here is the error message for newsclipper after
> typing perl Makefile.PL and going thru the configs:
>
> Where would you like to install the default configuration file
> NewsClipper.cfg?
> => [~/newsclipper/etc]
> Warning: prerequisite HTML::FormatText 0 not found at (eval 2) line 220.
> Warning: prerequisite HTML::TreeBuilder 0 not found at (eval 2) line 220.
> Warning: prerequisite Time::CTime 0 not found at (eval 2) line 220.
> Warning: prerequisite Time::ParseDate 0 not found at (eval 2) line 220.
> Writing Makefile for NewsClipper
> [revned@cs:/export/home0/revned/cgi-bin/NewsClipper-1.17-os]$
Install the modules described in the README. If you don't have root access to
install the modules, and your sysadmin doesn't have an easy way for you to
install modules, see the instructions below. (I'll add them to the FAQ.)
Normally, the perl5 module installation procedure includes commands something
like these:
% perl5 Makefile.PL
% make
% make test
% make install
The first command, perl5 Makefile.PL, directs perl5 to create a makefile for
the new module you are installing. When installing a perl5 module locally you
must designate on the command line the home directory of your perl5
installation. That information is used by perl5 to create the makefile.
Substitute the following command for perl5 Makefile.PL:
% perl5 Makefile.PL PREFIX=/path/to/your/home/directory/perl
This will place your private copies of modules and their documentation in
subdirectories of /path/to/your/home/directory/perl. So the complete
installation process is:
% perl5 Makefile.PL PREFIX=/path/to/your/home/directory/perl
% make
% make test
% make install
For older modules it may be necessary to designate several other variables on
the command line during the module installation:
% perl5 Makefile.PL PREFIX=/path/to/your/home/directory/perl \
INSTALLPRIVLIB=/path/to/your/home/directory/perl/lib \
INSTALLSCRIPT=/path/to/your/home/directory/perl/bin \
INSTALLSITELIB=/path/to/your/home/directory/perl/lib/site_perl \
INSTALLBIN=/path/to/your/home/directory/perl/bin \
INSTALLMAN1DIR=/path/to/your/home/directory/perl/man/man1 \
INSTALLMAN3DIR=/path/to/your/home/directory/perl/man/man3
To save yourself some typing you can create a file and put these variable assignments
above in the file something like this:
PREFIX=/path/to/your/home/directory/perl \
INSTALLPRIVLIB=/path/to/your/home/directory/perl/lib \
INSTALLSCRIPT=/path/to/your/home/directory/perl/bin \
INSTALLSITELIB=/path/to/your/home/directory/perl/lib/site_perl \
INSTALLBIN=/path/to/your/home/directory/perl/bin \
INSTALLMAN1DIR=/path/to/your/home/directory/perl/man/man1 \
INSTALLMAN3DIR=/path/to/your/home/directory/perl/man/man3
Then, each time you install a perl5 module you can use the following syntax:
% perl5 Makefile.PL `cat <filename>`
% make
% make test
% make install
(Note the backticks on `cat <filename>`
Making scripts find the modules you have installed
Once you've installed your own modules, you'll need some way of telling Perl
where they are. The following command should be put in your .bashrc, .cshrc,
.login, or .profile. This command will prepend your new module locations to and
existing search paths.
% setenv PERL5LIB /path/to/your/home/directory/perl:$PERL5LIB
Run
% finger <yourlogin>
to find out your shell, and then check the man page for your shell to find out how to
set environment variables.
Module installation using CPAN.pm
An alternative to manually installing perl5 modules is the CPAN.pm module (see
www.perl.com/CPAN/) which automates module download and installation. If you
have perl5.004 or higher installed you have it bundled with the distribution.
If not, you can download it from CPAN.
When you initially run the
% perl5 -MCPAN -e shell
command, it will ask you a few questions. You can use all the defaults, except
for this one
Parameters for the 'perl Makefile.PL' command? []
PREFIX=/path/to/your/home/directory/perl
INSTALLPRIVLIB=/path/to/your/home/directory/perl/lib
INSTALLSCRIPT=/path/to/your/home/directory/perl/bin
INSTALLSITELIB=/path/to/your/home/directory/perl/lib/site_perl
INSTALLBIN=/path/to/your/home/directory/perl/bin
INSTALLMAN1DIR=/path/to/your/home/directory/perl/man/man1
INSTALLMAN3DIR=/path/to/your/home/directory/perl/man/man3
After configuration of the module is complete, you will see a > prompt. Then
you can try installing modules. To install the CGI module, do this:
> install CGI
It will fetch the latest CGI module, unpack it, make it, test it and install it
into your local area or the directory you specified as the PREFIX directory.
The command:
> i /CGI/
will return the list of modules that match that pattern. The CPAN.pm module
has more functionality, like checking for the latest modules, for example. Just
run "perldoc CPAN" to read the man page.
David
____________________________________________________________________________
David Coppit <[EMAIL PROTECTED]> President, Spinnaker Software
http://www.newsclipper.com/ -- Snip and ship dynamic content to your website
-
If you would like to unsubscribe from this mailing list send an email to
[EMAIL PROTECTED] with the body "unsubscribe newsclipperlist
YOUR_EMAIL_ADDRESS" (without the quotes) or use the form provided at
http://www.NewsClipper.com/TechSup.htm#MailingList.