]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blob - doc/forum/installing_ikiwiki__44___local::lib__44___and_po4a_on_nearlyfreespeech.mdwn
(no commit message)
[git.ikiwiki.info.git] / doc / forum / installing_ikiwiki__44___local::lib__44___and_po4a_on_nearlyfreespeech.mdwn
1 I am trying to follow <https://ikiwiki.info/tips/nearlyfreespeech/>. It installs IkiWiki into ~/lib/perl5. 
4 I have this in ~/.profile:
6     [svetlana /home/private]$ cat ~/.profile
7     PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/home/private//bin
8     #eval `perl -I ~/perl5/lib/perl5 -Mlocal::lib`
9     echo $PERL5LIB
10     eval `perl -I ~/lib/perl5:~/perl5/lib/perl5 -Mlocal::lib`
11     echo $PERL5LIB
12     export MANPATH=$HOME/perl5/man:$MANPATH
13     #export PERL5LIB=$HOME/ikiwiki:$HOME/ikiwiki/cpan:$HOME/lib/perl5:$HOME/perl5/lib/perl5
14     [svetlana /home/private]$
16 The wiki works. How it sets the environment so that things 'see' it in ~/lib/perl5, I have no idea.
18 I installed cpanm. Turns out it installs itself to ~/perl5/lib/perl5.
20 I installed local::lib. Turns out it sets PERL5LIB to ~/perl5/lib/perl5.
22 I didn't see po4a in cpan and was too lazy to add it there, though it's probably two clicks away.
24 I downloaded po4a from debian package page as a tarball and build it. Turns out it installs itself into ~/perl5/lib/perl5.
26 I added 'po' to the list of plugins in wiki config, and refreshed it.
29 Webserver says 
31 AH01215: Failed to load plugin IkiWiki::Plugin::po: Can't locate Locale/Po4a/Chooser.pm in @INC (you may need to install the Locale::Po4a::Chooser module) (@INC contains: /home/private//lib/perl5/amd64-freebsd-thread-multi /home/private//lib/perl5 /usr/local/lib/perl5/site_perl/mach/5.22 /usr/local/lib/perl5/site_perl /usr/local/lib/perl5/5.22/mach /usr/local/lib/perl5/5.22) at /home/private//lib/perl5/IkiWiki/Plugin/po.pm line 19.: /fs6d/svetlana/public/ikiwiki.cgi
33 Everything gives error 500.
35 Removing 'po' from 'add_plugins' section and refreshing the wiki gets rid of the problem. But I would really like po plugin to work.
37 I tried building po4a again. Now it complains about missing dependencies, SGMLS and Unicode::GCString. cpanm doesn't find SGMLS, and there is some error installing Unicode::GCString from cpanm. At this point, I don't care what that error is.
39 I just know I'm doing something wrong and need someone to tell me what.
41 In the first place I'd prefer everything went to the location local::lib likes.
43 There is no reason to keep everything in ~/perl5/lib/perl5, while keeping IkiWiki in ~/lib/perl5.
45 I'd like to fix that first.
47 Please advise. Thank you very much.