TIP CpanContrib is not installed on Foswiki.org.

Cpan Contrib

CpanContrib ships basic CPAN modules Foswiki relies on.

Versions of Foswiki prior to 1.2 shipped a subset of the Perl CPAN modules required to run Foswiki. As of Foswiki 1.2, these CPAN modules have been removed from <foswiki_install_dir>/lib/CPAN/lib. On systems where you are not permitted to install CPAN modules, you can install this contrib to provide the majority of the Foswiki Perl dependencies. However if it's possible to install CPAN modules, we recommend installing them locally rather than installing this Contrib.

This contrib ships with all CPAN modules that are required for a fully functional default Foswiki installation, with the following exceptions:

  • bcrypt encryption cannot be used for local password storage. CPAN:Crypt::Eksblowfish::Bcrypt is not provided. Note that use of bcrypt is unusual, but a warning will be displayed in configure.
  • WYSIWYG editing will not be usable. The CPAN:HTML::Parser and CPAN:HTML::Entities modules are not provided.
  • SSL Email will not be functional (required to use Google's gmail as an email service). CPAN:Net::SSLeay is not included.

These modules are not provided because they are not available in a "pure perl" implemenation and must be compiled for the target system. In addition, CPAN:Net::SSLeay has dependencies on the non-perl package OpenSSL.

The CPAN modules bundled with the CPANContrib are licenses and copyrighted per their original authors. See the individual CPAN modules for information.

Installation

This extension will typically require a special installation procedure. Because this extension provides critical perl dependencies, the Foswiki extension installer will not be functional.

To install this extension, download the zip or tgz file from the Foswiki Extensions repository, and unzip / untar the downloaded file into the foswiki installation. If Foswiki encounters errors because these modules are incompatible with the installed perl, you may need to follow the steps in bin/LocalLib.cfg.txt to add these libs to the front of the search path, overriding the system provided modules.

Updating this extension with current CPAN modules

This extension was built using the cpanm tool provided by App::cpanminus

cd into the CpanContrib directory and then build the dependencies:
cpanm --pp -L . --self-contained --exclude-vendor Algorithm::Diff Archive::Tar Archive::Zip CGI CGI::Session Crypt::PasswdMD5 Digest::SHA Email::MIME Error
cpanm --pp -L . --self-contained --exclude-vendor File::Copy::Recursive HTML::Parser HTML::Tree IO::Socket::IP Locale::Maketext::Lexicon Locale::Msgfmt LWP Socket version URI

This will compile the modules into lib/perl5. Move the contents of lib/perl5 into lib/CPAN/lib. If this is being built for portable use, remove any architecure specific directories, such as x86_64-linux Files such as .pod documentation can also be removed.

Note that on occasion, some modules may fail to pass tests, and the --force flag will be required to force installation.

Info

Dependencies: None
Change History:  
1.02 (06 Feb 2016): Released for Foswiki 2.1
1.01 (08 Jul 2015): Released for Foswiki 2.0
1.00 (14 Mar 2014): Initial version

PackageForm edit

Author OliverKrueger
Version 1.02
Release 06 Feb 2016
Description CpanContrib ships basic CPAN modules Foswiki relies on.
Copyright © 2014-2016, OliverKrueger, Foswiki Contributors, All Rights Reserved.
License GPL (GNU General Public License)
Home http://foswiki.org/Extensions/CpanContrib
Support http://foswiki.org/Support/CpanContrib
Repository https://github.com/foswiki/CpanContrib
ExtensionClassification Development
ExtensionType PluginPackage
Compatibility
ImageUrl
DemoUrl http://
SupportUrl CpanContrib
ModificationPolicy FollowsReleaseProcess
Topic attachments
I Attachment Action Size Date Who Comment
CpanContrib.md5md5 CpanContrib.md5 manage 156 bytes 07 Feb 2016 - 02:55 GeorgeClark  
CpanContrib.sha1sha1 CpanContrib.sha1 manage 180 bytes 07 Feb 2016 - 02:56 GeorgeClark  
CpanContrib.tgztgz CpanContrib.tgz manage 792 K 07 Feb 2016 - 02:54 GeorgeClark  
CpanContrib.zipzip CpanContrib.zip manage 942 K 07 Feb 2016 - 02:53 GeorgeClark  
CpanContrib_installerEXT CpanContrib_installer manage 21 K 07 Feb 2016 - 02:55 GeorgeClark  
Topic revision: r3 - 07 Feb 2016, GeorgeClark - This page was cached on 30 Jul 2016 - 05:39.

The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License