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

Tomas Cohen Arazi tomascohen at gmail.com
Sun Dec 31 02:02:10 NZDT 2017


Or better, use

koha-translate --install it-IT

This is explained on the wiki:

https://wiki.koha-community.org/wiki/Koha_on_Debian#Translations

Good luck!

El sáb., 30 de dic. de 2017 8:07 a. m., Katrin Fischer <
katrin.fischer.83 at web.de> escribió:

> Hi Giuseppe,
>
> if you are using a package installation of Koha, make sure to switch
> into the koha-shell for your instance first:
>
> sudo koha-shell instancename
>
> Hope this helps,
>
> Katrin
>
>
> On 30.12.2017 10:44, Giuseppe Passanisi wrote:
> > 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
> > _______________________________________________
> > Koha mailing list  http://koha-community.org
> > Koha at lists.katipo.co.nz
> > https://lists.katipo.co.nz/mailman/listinfo/koha
>
> _______________________________________________
> Koha mailing list  http://koha-community.org
> Koha at lists.katipo.co.nz
> https://lists.katipo.co.nz/mailman/listinfo/koha
>
-- 
Tomás Cohen Arazi
Theke Solutions (https://theke.io <http://theke.io/>)
✆ +54 9351 3513384
GPG: B2F3C15F


More information about the Koha mailing list