This question about Installation of Foswiki: Answered

Howto Install Perl packages

I have an old Foswiki installation 1.1.3 running in an ancient version of Ubunto in a VMWare VM. Decided to reinstall by creating a new virtual machine and installing foswiki from scratch.Now up and running, BUT i get errors from missing perl modules.

Can't load pluggable LANGUAGES: Can't locate Locale/Language.pm in @INC (you may need to install the Locale::Language module) (@INC contains: /var/www/foswiki/lib /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.30.0 /usr/local/share/perl/5.30.0 /usr/lib/x86_64-linux-gnu/perl5/5.30 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.30 /usr/share/perl/5.30 /usr/local/lib/site_perl /usr/lib/x86_64-linux-gnu/perl-base /var/www/foswiki/lib/CPAN/lib) at /var/www/foswiki/lib/Foswiki/Configure/Pluggables/LANGUAGES.pm line 16, <$fh> line 1304. at

Also bulk_copy whines about missing perl modules when trying to migrate the "old" wiki to the new one.

How to do install perl modules ?

According to the guide:

the CGI::Session library is called libcgi-session-perl. (Change to lowercase, add lib prefix, replace :: with - and add -perl suffix)

Very user friendly, right ?

So:

Can't locate Locale/Language.pm in @INC

sudo apt-get install liblocale-language-perl

arsten@KbWikie:/var/www/foswiki/tools$ sudo apt-get install liblocale-language-perl
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package liblocale-language-perl
karsten@KbWikie:/var/www/foswiki/tools$

Is building the entire thing on windows a better option ?.

-- KarstenBrondum - 09 Sep 2020

There are several language-related perl modules listed in Installation Guide - Installation Requirements - Ubuntu and Debian which you might confirm that you have loaded: liblocale-maketext-perl, liblocale-maketext-lexicon-perl, and liblocale-msgfmt-perl (the second and third being listed as "optional"). If that doesn't remove the error, we can dig further. Good luck!

-- LynnwoodBrown - 11 Sep 2020

When installation of a package fails using apt-get, try to download the perl module from https://metacpan.org/, as I describe here: https://wiki.boossy.be/Boossy/FwInstallationExplio#Install_missing_critical_dependencies.

In your case, enter Locale::Language in the search text box and click on the Search the CPAN button. The first hit will be https://metacpan.org/pod/distribution/Locale-Codes/lib/Locale/Language.pm. Click on it. Then download the module. The Download link is found in the left navigation bar under TOOLS. unzip the tar.gz file unzip the tar file go down in the unzipped folder to the lib subdirectory copy the directory in that folder (Locale) to the foswiki/lib/CPAN/lib directory.

-- StijnBousard - 15 Oct 2020

This seemed to fixed the problem for me:

# apt install liblocale-codes-perl

-- MikeForey - 23 Jan 2021
 

QuestionForm edit

Subject Installation of Foswiki
Extension
Version Foswiki 2.1.6
Status Answered
Related Topics
Topic revision: r5 - 23 Jan 2021, MichaelDaum
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy