Can't locate Class/Factory/Util.pm
Hi everyone, We are upgrading Koha from v 2.2.9 to 3.0. When running command - misc/migration_tools/22_to_30/move_marc_to_biblioitems.pl - we get the following messages: Can't locate Class/Factory/Util.pm in @INC (@INC contains: web/intranet/C4/ /web/intranet/koha/ /usr/lib/perl5/5.8.6/i486-linux /usr/lib/perl5/5.8.6 /usr/lib/perl5/site_perl/5.8.6/i486-linux /usr/lib/perl5/site_perl/5.8.6 /usr/lib/perl5/site_perl .) at /web/intranet/koha//C4/ClassSortRoutine.pm line 22. BEGIN failed--compilation aborted at /web/intranet/koha//C4/ClassSortRoutine.pm line 22. Compilation failed in require at /web/intranet/koha//C4/ClassSource.pm line 24. BEGIN failed--compilation aborted at /web/intranet/koha//C4/ClassSource.pm line 24. Compilation failed in require at /web/intranet/koha//C4/Biblio.pm line 32. BEGIN failed--compilation aborted at /web/intranet/koha//C4/Biblio.pm line 32. Compilation failed in require at misc/migration_tools/22_to_30/move_marc_to_biblioitems.pl line 12. BEGIN failed--compilation aborted at misc/migration_tools/22_to_30/move_marc_to_biblioitems.pl line 12. Can anybody help me out fix this problem? Thanks in advance Luis Cabo Senior Software Developer Perimeter Institute for Theoretical Physics <http://www.perimeterinstitute.ca/> (519) 569-7600 x5120
Hi, On Thu, Apr 17, 2008 at 3:33 PM, Luis Rivas <lrivas@perimeterinstitute.ca> wrote:
Can't locate Class/Factory/Util.pm in @INC (@INC contains: web/intranet/C4/ /web/intranet/koha/ /usr/lib/perl5/5.8.6/i486-linux /usr/lib/perl5/5.8.6 /usr/lib/perl5/site_perl/5.8.6/i486-linux /usr/lib/perl5/site_perl/5.8.6 /usr/lib/perl5/site_perl .) at /web/intranet/koha//C4/ClassSortRoutine.pm line 22.
BEGIN failed--compilation aborted at /web/intranet/koha//C4/ClassSortRoutine.pm line 22.
Try running 'sudo cpan Class::Install::Util'. If that Perl module is already installed, you may need to set the PERL5LIB environment variable to point to the directory that contains it. Regards, Galen -- Galen Charlton Koha Application Developer LibLime galen.charlton@liblime.com p: 1-888-564-2457 x709
Hi, Thanks for you help. It installed the util module. I then ran the move_marc_to_biblioitems.pl script again which gave another error: Can't locate XML/LibXSLT.pm in @INC (@INC contains: /web/intranet/koha/ /usr/lib/perl5/5.8.6/i486-linux /usr/lib/perl5/5.8.6 /usr/lib/perl5/site_perl/5.8.6/i486-linux /usr/lib/perl5/site_perl/5.8.6 /usr/lib/perl5/site_perl .) at /web/intranet/koha//C4/XSLT.pm line 26. BEGIN failed--compilation aborted at /web/intranet/koha//C4/XSLT.pm line 26. Compilation failed in require at /web/intranet/koha//C4/Search.pm line 27. BEGIN failed--compilation aborted at /web/intranet/koha//C4/Search.pm line 27. Compilation failed in require at /web/intranet/koha//C4/Heading.pm line 25. BEGIN failed--compilation aborted at /web/intranet/koha//C4/Heading.pm line 25. Compilation failed in require at /web/intranet/koha//C4/Biblio.pm line 114. BEGIN failed--compilation aborted at /web/intranet/koha//C4/Biblio.pm line 114. Compilation failed in require at misc/migration_tools/22_to_30/move_marc_to_biblioitems.pl line 12. BEGIN failed--compilation aborted at misc/migration_tools/22_to_30/move_marc_to_biblioitems.pl line 12. So I tried to install the XML-LibXSLT module using command: perl -MCPAN -e 'install XML::LibXSLT' I got at the end: ... ... ... XML-LibXSLT-1.66/t/14security.t XML-LibXSLT-1.66/testcases/ XML-LibXSLT-1.66/testcases/default.conf XML-LibXSLT-1.66/typemap CPAN.pm: Going to build P/PA/PAJAS/XML-LibXSLT-1.66.tar.gz running xslt-config... failed XML::LibXSLT needs libxslt version 1.1.18 or higher make: *** No targets specified and no makefile found. Stop. /usr/bin/make -- NOT OK Running make test Can't test without successful make Running make install make had returned bad status, install seems impossible Then I installed the libxlst library version 1.1.22 but still I get the same error when I run the command. Any ideas? Thanks Luis Hi, On Thu, Apr 17, 2008 at 3:33 PM, Luis Rivas <lrivas@perimeterinstitute.ca> wrote:
Can't locate Class/Factory/Util.pm in @INC (@INC contains: web/intranet/C4/ /web/intranet/koha/ /usr/lib/perl5/5.8.6/i486-linux /usr/lib/perl5/5.8.6 /usr/lib/perl5/site_perl/5.8.6/i486-linux /usr/lib/perl5/site_perl/5.8.6 /usr/lib/perl5/site_perl .) at /web/intranet/koha//C4/ClassSortRoutine.pm line 22.
BEGIN failed--compilation aborted at /web/intranet/koha//C4/ClassSortRoutine.pm line 22.
Try running 'sudo cpan Class::Install::Util'. If that Perl module is already installed, you may need to set the PERL5LIB environment variable to point to the directory that contains it. Regards, Galen -- Galen Charlton Koha Application Developer LibLime galen.charlton@liblime.com p: 1-888-564-2457 x709
Hi, On Fri, Apr 18, 2008 at 8:58 AM, Luis Rivas <lrivas@perimeterinstitute.ca> wrote:
Then I installed the libxlst library version 1.1.22 but still I get the same error when I run the command. Any ideas?
What platform are you using? If you are on a Debian or Ubuntu system, you may need to apt-get the libxslt1-dev package to get the header files required to compile the XML::LibXSLT Perl module. Regards, Galen -- Galen Charlton Koha Application Developer LibLime galen.charlton@liblime.com p: 1-888-564-2457 x709
participants (2)
-
Galen Charlton -
Luis Rivas