Can't locate Koha/Cache.pm
Hi list. We have installed koha3.22.10Tarball version on Ubuntu 14.04 version Now when we tray to install additional language we have such error ****************************************************************** root@host-93-94-220-102:/usr/share/koha/misc/translator# sudo perl translate install hy-Armn Can't locate Koha/Cache.pm in @INC (you may need to install the Koha::Cache module) (@INC contains: /etc/perl /usr/local/lib/perl/5.18.2 /usr/local/share/perl/5.18.2 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.18 /usr/share/perl/5.18 /usr/local/lib/site_perl .) at /etc/perl/C4/Context.pm line 112. BEGIN failed--compilation aborted at /etc/perl/C4/Context.pm line 112. Compilation failed in require at LangInstaller.pm line 22. BEGIN failed--compilation aborted at LangInstaller.pm line 22. Compilation failed in require at translate line 25. BEGIN failed--compilation aborted at translate line 25. ******************************************************************** we tried such command cp -a /usr/share/koha/lib/C4/ /etc/perl/ but we had the same error and we tried via cpan install Koha::Cache and reaceved error *************************** Warning: Cannot install Koha::Cache, don't know what it is. ***************************** Now how we can solve this problem?
Hi, Koha::Cache is a Koha internal module (not an external dependency), so no need to download anything. According to the error message you need to set the PERL5LIB environment variable to the path where Koha modules are installed (the path that contains directories 'C4' and 'Koha'). For instance: $ export PERL5LIB="/usr/share/koha/lib/" $ perl -V # to verify that @INC is correctly modified $ sudo perl translate install hy-Armn You can put the "export" line in your .bashrc (if you use bash) to avoid repeating this command every time. Also...
we tried such command cp -a /usr/share/koha/lib/C4/ /etc/perl/
Don't do that. You could remove important files of your system. Hope that helps. On 23/09/2016 10:11, Arayik Manukyan wrote:
Hi list.
We have installed koha3.22.10Tarball version on Ubuntu 14.04 version
Now when we tray to install additional language we have such error
******************************************************************
root@host-93-94-220-102:/usr/share/koha/misc/translator# sudo perl translate install hy-Armn Can't locate Koha/Cache.pm in @INC (you may need to install the Koha::Cache module) (@INC contains: /etc/perl /usr/local/lib/perl/5.18.2 /usr/local/share/perl/5.18.2 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.18 /usr/share/perl/5.18 /usr/local/lib/site_perl .) at /etc/perl/C4/Context.pm line 112. BEGIN failed--compilation aborted at /etc/perl/C4/Context.pm line 112. Compilation failed in require at LangInstaller.pm line 22. BEGIN failed--compilation aborted at LangInstaller.pm line 22. Compilation failed in require at translate line 25. BEGIN failed--compilation aborted at translate line 25. ********************************************************************
we tried such command cp -a /usr/share/koha/lib/C4/ /etc/perl/
but we had the same error
and we tried via cpan install Koha::Cache and reaceved error
***************************
Warning: Cannot install Koha::Cache, don't know what it is.
*****************************
Now how we can solve this problem?
_______________________________________________ Koha mailing list http://koha-community.org Koha@lists.katipo.co.nz https://lists.katipo.co.nz/mailman/listinfo/koha
-- Julian Maurice <julian.maurice@biblibre.com> BibLibre
Hi, Installation of a tarball package on Ubuntu is *not* at all recommended for usual deployments of Koha. You will be far better served by taking the .deb package route. Tarballs are meant for specialized use-cases where the users are capable of doing their own package management, dependency resolution and version control themselves. just my 2p, -idg -- Indranil Das Gupta L2C2 Technologies Phone : +91-98300-20971 Blog : http://blog.l2c2.co.in IRC : indradg on irc://irc.freenode.net Twitter : indradg On Fri, Sep 23, 2016 at 1:41 PM, Arayik Manukyan <araik@flib.sci.am> wrote:
Hi list.
We have installed koha3.22.10Tarball version on Ubuntu 14.04 version
Now when we tray to install additional language we have such error
******************************************************************
root@host-93-94-220-102:/usr/share/koha/misc/translator# sudo perl translate install hy-Armn Can't locate Koha/Cache.pm in @INC (you may need to install the Koha::Cache module) (@INC contains: /etc/perl /usr/local/lib/perl/5.18.2 /usr/local/share/perl/5.18.2 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.18 /usr/share/perl/5.18 /usr/local/lib/site_perl .) at /etc/perl/C4/Context.pm line 112. BEGIN failed--compilation aborted at /etc/perl/C4/Context.pm line 112. Compilation failed in require at LangInstaller.pm line 22. BEGIN failed--compilation aborted at LangInstaller.pm line 22. Compilation failed in require at translate line 25. BEGIN failed--compilation aborted at translate line 25. ********************************************************************
we tried such command cp -a /usr/share/koha/lib/C4/ /etc/perl/
but we had the same error
and we tried via cpan install Koha::Cache and reaceved error
***************************
Warning: Cannot install Koha::Cache, don't know what it is.
*****************************
Now how we can solve this problem?
_______________________________________________ Koha mailing list http://koha-community.org Koha@lists.katipo.co.nz https://lists.katipo.co.nz/mailman/listinfo/koha
participants (3)
-
Arayik Manukyan -
Indranil Das Gupta -
Julian Maurice