Re: [Koha] Can't locate LangInstaller.pm in @INC
Mark, this has been implemented and pushed recently, see bug 19760 (Die if koha-conf is not accessible) On Sat, 30 Dec 2017 at 12:35 Mark Alexanderwrote: > > > root@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. > [...] > > sudo koha-shell instancename > > This problem comes up so frequently that I wonder if the scripts > could check for it and suggest a fix, along these lines: > > if (!defined($ENV{KOHA_CONF}) && !defined($ENV{PERL5LIB})) { >die("Please run koha-shell first."); > } > ___ > Koha mailing list http://koha-community.org > Koha@lists.katipo.co.nz > https://lists.katipo.co.nz/mailman/listinfo/koha > ___ Koha mailing list http://koha-community.org Koha@lists.katipo.co.nz https://lists.katipo.co.nz/mailman/listinfo/koha
Re: [Koha] Can't locate LangInstaller.pm in @INC
> > root@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. [...] > sudo koha-shell instancename This problem comes up so frequently that I wonder if the scripts could check for it and suggest a fix, along these lines: if (!defined($ENV{KOHA_CONF}) && !defined($ENV{PERL5LIB})) { die("Please run koha-shell first."); } ___ Koha mailing list http://koha-community.org Koha@lists.katipo.co.nz https://lists.katipo.co.nz/mailman/listinfo/koha
Re: [Koha] Can't locate LangInstaller.pm in @INC
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...@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@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@srv2:/usr/share/koha/misc/translator# perl > -I/usr/share/koha/misc/translator translate install it-IT > > > > But again same issues: > > root@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
Re: [Koha] Can't locate LangInstaller.pm in @INC
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@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@srv2:/usr/share/koha/misc/translator# perl -I/usr/share/koha/misc/translator translate install it-IT But again same issues: root@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
[Koha] Can't locate LangInstaller.pm in @INC
Hello, I'm having trouble with translating Koha 17.11. When I try to run "translate install it-IT" it return me: root@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@srv2:/usr/share/koha/misc/translator# perl -I/usr/share/koha/misc/translator translate install it-IT But again same issues: root@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