Perl dependencies can also be installed on most systems using
cpanm
, aka
App::cpanminus
. On most unix* systems,
cpanminus
can bootstrap itself using curl or wget.
If run as root, the modules will be installed in the System perl. Otherwise they are installed into the users local environment.
Perl Module |
Notes |
Algorithm::Diff |
|
Archive::Tar |
*First shipped in perl 5.9.3 |
Authen::SASL |
Optional, needed for authenticated SMTP |
CGI |
|
CGI::Session |
|
Crypt::PasswdMD5 |
|
Digest::SHA |
Included with perl |
Error |
|
Email::Address::XS |
|
Email::MIME |
|
Encode |
|
File::Copy::Recursive |
|
HTML::Parser |
|
HTML::Tree |
|
IO::Socket::IP |
|
IO::Socket::SSL |
Optional, support encrypted email connection: STARTTLS or SSL |
JSON |
|
Locale::Maketext |
|
Locale::Maketext::Lexicon |
Optional, needed for internationalization |
Locale::Msgfmt |
Optional, needed for internationalization |
LWP |
|
LWP::Protocol::https |
|
URI |
|
version |
Must be version 0.77 or newer, included with perl 5.10.1 and newer. |
To install the above packages with cpanm
Note: We do not recommend installing CPAN modules with cpanminus as root.
See below for information on using a private module library with cpanminus.
curl -L http://cpanmin.us | perl - App::cpanminus (optional - install cpanminus if not available )
cpanm Algorithm::Diff Archive::Tar Authen::SASL CGI CGI::Session Crypt::PasswdMD5 Digest::SHA Error Email::Address::XS Email::MIME Encode File::Copy::Recursive HTML::Parser HTML::Tree IO::Socket::IP IO::Socket::SSL JSON Locale::Maketext Locale::Maketext::Lexicon Locale::Msgfmt LWP LWP::Protocol::https URI version
Optional dependencies
Install as needed.
Perl Module |
Package to install |
Notes |
Apache2::Request |
Required if using Apache 2 and mod_perl |
DBI |
|
Optional - Used for the Foswiki Page cache |
DBD::mysql |
|
Optional - Used for MySQL based Page Cache |
DBD::Pg |
|
Optional - Used for PostgreSQL based Page Cache |
DBD::SQLite |
|
Optional - Used for SQLite based Page Cache |
FCGI |
|
Optional, needed for fastcgi / fcgi apache modules |
FCGI::ProcManager |
|
Optional, needed for fastcgi / fcgi process management on nginx |
Crypt::SMIME |
|
Optional, used for S/MIME email signing |
Crypt::X509 |
|
Optional, used for S/MIME email signing |
Convert::PEM |
|
Optional, used for S/MIME email signing |
Locale::Language |
Optional, Locale::Language will be removed from the Perl core distribution in 5.28. |
Installation using cpanminus
See
Foswiki:Support.HowToInstallCpanModules for more information.
If you want to install the dependendencies into a specified location, add the
"-l"
option to cpanm, and add the lib path to
bin/LocalLib.cfg
. The dependencies will be installed under the specified location, in the
lib/perl5
subdirectory.
Example: User "foswiki" logs in and installs the libraries locally under the foswikideps directory:
cpanm -l foswikideps Algorithm::Diff Archive::Tar ... (install libraries into =/home/foswiki/foswikideps=)
/path/to/foswiki/bin/LocalLib.txt
is then edited, and the commented line is modified:
# @localPerlLibPath = ( '/path/to/dir', '/path/to/another/dir', );
@localPerlLibPath = ( '/home/foswiki/foswikideps/lib/perl5', );
Foswiki will now run using the libraries installed by cpanm.