[Koha] Can't locate LangInstaller.pm in @INC

Giuseppe Passanisi peppe.3b at hotmail.it
Sat Dec 30 22:44:56 NZDT 2017


Hello,

I'm having trouble with translating Koha 17.11.


When I try to run "translate install it-IT"  it return me:

root at srv2:/usr/share/koha/misc/translator# ./translate install it-IT
Can't locate LangInstaller.pm in @INC (you may need to install the LangInstaller module) (@INC contains: /usr/share/koha/lib /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.24.1 /usr/local/share/perl/5.24.1 /usr/lib/x86_64-linux-gnu/perl5/5.24 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.24 /usr/share/perl/5.24 /usr/local/lib/site_perl /usr/lib/x86_64-linux-gnu/perl-base) at ./translate line 25.

Only way to work is with:
root at srv2:/usr/share/koha/misc/translator# perl -I/usr/share/koha/misc/translator translate install it-IT

 But again same issues:
root at srv2:/usr/share/koha/misc/translator# perl -I/usr/share/koha/misc/translator translate install it-IT
Can't locate TmplTokenizer.pm in @INC (you may need to install the TmplTokenizer module) (@INC contains: /usr/share/koha/lib /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.24.1 /usr/local/share/perl/5.24.1 /usr/lib/x86_64-linux-gnu/perl5/5.24 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.24 /usr/share/perl/5.24 /usr/local/lib/site_perl /usr/lib/x86_64-linux-gnu/perl-base) at /usr/share/koha/misc/translator/tmpl_process3.pl line 20.
BEGIN failed--compilation aborted at /usr/share/koha/misc/translator/tmpl_process3.pl line 20.
Can't locate TmplTokenizer.pm in @INC (you may need to install the TmplTokenizer module) (@INC contains: /usr/share/koha/lib /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.24.1 /usr/local/share/perl/5.24.1 /usr/lib/x86_64-linux-gnu/perl5/5.24 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.24 /usr/share/perl/5.24 /usr/local/lib/site_perl /usr/lib/x86_64-linux-gnu/perl-base) at /usr/share/koha/misc/translator/tmpl_process3.pl line 20.
BEGIN failed--compilation aborted at /usr/share/koha/misc/translator/tmpl_process3.pl line 20.
Can't locate TmplTokenizer.pm in @INC (you may need to install the TmplTokenizer module) (@INC contains: /usr/share/koha/lib /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.24.1 /usr/local/share/perl/5.24.1 /usr/lib/x86_64-linux-gnu/perl5/5.24 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.24 /usr/share/perl/5.24 /usr/local/lib/site_perl /usr/lib/x86_64-linux-gnu/perl-base) at /usr/share/koha/misc/translator/tmpl_process3.pl line 20.
BEGIN failed--compilation aborted at /usr/share/koha/misc/translator/tmpl_process3.pl line 20.
Can't locate TmplTokenizer.pm in @INC (you may need to install the TmplTokenizer module) (@INC contains: /usr/share/koha/lib /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.24.1 /usr/local/share/perl/5.24.1 /usr/lib/x86_64-linux-gnu/perl5/5.24 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.24 /usr/share/perl/5.24 /usr/local/lib/site_perl /usr/lib/x86_64-linux-gnu/perl-base) at /usr/share/koha/misc/translator/tmpl_process3.pl line 20.
BEGIN failed--compilation aborted at /usr/share/koha/misc/translator/tmpl_process3.pl line 20.
Can't locate TmplTokenizer.pm in @INC (you may need to install the TmplTokenizer module) (@INC contains: /usr/share/koha/lib /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.24.1 /usr/local/share/perl/5.24.1 /usr/lib/x86_64-linux-gnu/perl5/5.24 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.24 /usr/share/perl/5.24 /usr/local/lib/site_perl /usr/lib/x86_64-linux-gnu/perl-base) at /usr/share/koha/misc/translator/tmpl_process3.pl line 20.
BEGIN failed--compilation aborted at /usr/share/koha/misc/translator/tmpl_process3.pl line 20.
Can't locate TmplTokenizer.pm in @INC (you may need to install the TmplTokenizer module) (@INC contains: /usr/share/koha/lib /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.24.1 /usr/local/share/perl/5.24.1 /usr/lib/x86_64-linux-gnu/perl5/5.24 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.24 /usr/share/perl/5.24 /usr/local/lib/site_perl /usr/lib/x86_64-linux-gnu/perl-base) at /usr/share/koha/misc/translator/tmpl_process3.pl line 20.
BEGIN failed--compilation aborted at /usr/share/koha/misc/translator/tmpl_process3.pl line 20.
Can't locate TmplTokenizer.pm in @INC (you may need to install the TmplTokenizer module) (@INC contains: /usr/share/koha/lib /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.24.1 /usr/local/share/perl/5.24.1 /usr/lib/x86_64-linux-gnu/perl5/5.24 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.24 /usr/share/perl/5.24 /usr/local/lib/site_perl /usr/lib/x86_64-linux-gnu/perl-base) at /usr/share/koha/misc/translator/tmpl_process3.pl line 20.
BEGIN failed--compilation aborted at /usr/share/koha/misc/translator/tmpl_process3.pl line 20.
Can't locate TmplTokenizer.pm in @INC (you may need to install the TmplTokenizer module) (@INC contains: /usr/share/koha/lib /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.24.1 /usr/local/share/perl/5.24.1 /usr/lib/x86_64-linux-gnu/perl5/5.24 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.24 /usr/share/perl/5.24 /usr/local/lib/site_perl /usr/lib/x86_64-linux-gnu/perl-base) at /usr/share/koha/misc/translator/tmpl_process3.pl line 20.
BEGIN failed--compilation aborted at /usr/share/koha/misc/translator/tmpl_process3.pl line 20.
Can't locate TmplTokenizer.pm in @INC (you may need to install the TmplTokenizer module) (@INC contains: /usr/share/koha/lib /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.24.1 /usr/local/share/perl/5.24.1 /usr/lib/x86_64-linux-gnu/perl5/5.24 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.24 /usr/share/perl/5.24 /usr/local/lib/site_perl /usr/lib/x86_64-linux-gnu/perl-base) at /usr/share/koha/misc/translator/tmpl_process3.pl line 20.
BEGIN failed--compilation aborted at /usr/share/koha/misc/translator/tmpl_process3.pl line 20.
Koha directories hierarchy for it-IT must be created first

As you can see @INC looks correct, and the *.pm files are in the current dir:
root at srv2:/usr/share/koha/misc/translator# ls -l
total 144
-rw-r--r-- 1 root root 20863 Dec  8 12:30 LangInstaller.pm
-rw-r--r-- 1 root root   270 Dec  8 12:30 Makefile
-rw-r--r-- 1 root root 19576 Dec  8 12:30 TmplTokenizer.pm
-rw-r--r-- 1 root root  3343 Dec  8 12:30 VerboseWarnings.pm
drwxr-xr-x 2 root root 36864 Dec 29 15:17 po/
-rwxr-xr-x 1 root root   871 Dec  8 12:30 text-extract.pl*
-rwxr-xr-x 1 root root  5304 Dec  8 12:30 text-extract2.pl*
-rwxr-xr-x 1 root root 20338 Dec  8 12:30 tmpl_process3.pl*
-rwxr-xr-x 1 root root  3747 Dec  8 12:30 translate*
-rwxr-xr-x 1 root root 17017 Dec  8 12:30 xgettext.pl*


Any idea how to solve that issue?

Best Regards,
Giuseppe Passanisi


More information about the Koha mailing list