Perllib is made freely available for any purpose - get it in one of the forms below.
Checking out the code base directly from our CVS repository allows you to follow the development of perllib closely and to contribute much more easily. Also, you will get a lot of bug fixes that are not in the CPAN distribution. In fact, if you intend to provide patches then you should use the CVS repository!
Once you have retrieved the code base, perl must be able to find the modules. Perl's install code, perl Makefile.PL;make install
, will allow you to make these packages available in the standard @INC path, but doing so may will cause the installed version to shadow subsequent updates. If you choose to run it in place (instead of make install
), you must tell perl the path to the W3C/ directory (from the install directory, perl/modules/W3C
). You may either set the PERL5LIB environment variable:
bash: PERL5LIB=<install directory>/perl/modules/W3C csh: setenv PERL5LIB <install directory>/perl/modules/W3C
or add it to your @INC path from the command line:
perl -I /usr/local/perl/modules myRdfTool.pl
For most scripts, you can use a relative path. This makes it easy to run them from the checked out directories:
bash: cd <install directory>/perl/modules/W3C/Rdf/bin PERL5LIB=../../.. ./algae <arguments>
Occasionally we build CPAN-style distributions of the code and produce a new revision, however, this happens much less frequently than updates are committed to the CVS repository.
warning: Installing the CPAN modules may complicate later use of CVS checkouts. When you install the CPAN modules, perl installs the modules in your include path. Depending on the PERL5LIB and @INC variables, perl is likely to use the CPAN versions instead any versions you check out from CVS.
The distributiosn come in packages:
Federate
.and as separate modules:
When you have downloaded the packages, do the following:
tar -xzf <package name>
cd <newly created package dir>
Perl Makefile.PL
make
make test
make install
The Perllib requires a few CPAN modules. If you are unfamiliar with CPAN, see the brief introduction. See also, the required module list and the windows option
Perl has a defined module packaging format and centralized repository. CPAN is somewhat overloaded in that it refers to both the format and the repository.
You can invoke the CPAN command shell with perl -MCPAN -e
shell
. If you have never used it before, it will ask you several
questions to configure it. It is a good idea to have already installed
gzip, tar, unzip, make, lynx,
ncftp, ftp, a pager like less or more, and a
shell like tcsh or bash. You may also want to know what
continent you inhabit.
The most important command you will use in CPAN is
install
. This takes an argument of a CPAN package name, like
Bundle::CPAN
or Tk
. You may also need to use the
i /foo/
idiom to search for packages with foo
in
them.
You can get the latest version of the CPAN libraries with
install Bundle::CPAN
.
activestate has a version of perl for windows which, at times, includes Tk.
Here is a list of the old packages, each package requires all the packages above it: