I know I have been down this road before but I am having the issue again. I run the (2) export commands: export PERL5LIB=/usr/share/koha/lib (C4 is located here) export KOHA_CONF=/etc/koha/koha-conf.xml (the file is located here) But I still keep getting the error when running the perl /usr/share/koha/bin/migration_tools/rebuild_zebra.pl -b -w command Can't locate C4/Context.pm in @INC (@INC contains: /etc/perl /usr/local/lib/perl/5.8.8 /usr/local/share/perl/5.8.8 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.8 /usr/share/perl/5.8 /usr/local/lib/site_perl .) at /usr/share/koha/bin/migration_tools/rebuild_zebra.pl line 5. BEGIN failed--compilation aborted at /usr/share/koha/bin/migration_tools/rebuild_zebra.pl line 5. It seems that it is not putting the path to C4 in the @INC. What am I missing. Thanks Ed Edward J. Roche Network Administrator Solanco School District 717.786.2151 x2437 "At the End of the Day, Did You Play to Win or Not to Lose?"
export PERL5LIB=/usr/share/koha/lib (C4 is located here) ... It seems that it is not putting the path to C4 in the @INC.
That's correct.
Can't locate C4/Context.pm in @INC @INC contains: /etc/perl /usr/local/lib/perl/5.8.8 /usr/local/share/perl/5.8.8 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.8 /usr/share/perl/5.8 /usr/local/lib/site_perl
/usr/share/koha/lib isn't in there. Try exporting again. Then check your variables with the "env" command, like: env # or env | grep PERL5LIB Then if rebuild_zebra still doesn't work, you can try something like: perl -I/usr/share/koha/lib /usr/share/koha/bin/migration_tools/rebuild_zebra.pl -b –w The -I (Include) option achieves the same kind of thing as the PERL5LIB variable. -- Joe Atzberger LibLime - Open Source Library Solutions
2009/6/18 Roche III, Edward <edward_roche@solanco.k12.pa.us>:
I know I have been down this road before but I am having the issue again. I run the (2) export commands:
export PERL5LIB=/usr/share/koha/lib (C4 is located here)
export KOHA_CONF=/etc/koha/koha-conf.xml (the file is located here)
But I still keep getting the error when running the perl /usr/share/koha/bin/migration_tools/rebuild_zebra.pl -b –w command
Can't locate C4/Context.pm in @INC (@INC contains: /etc/perl /usr/local/lib/perl/5.8.8 /usr/local/share/perl/5.8.8 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.8 /usr/share/perl/5.8 /usr/local/lib/site_perl .) at /usr/share/koha/bin/migration_tools/rebuild_zebra.pl line 5.
Copying C4 directory to /etc/perl/ should solve your problem. # cp -a /usr/share/koha/lib/C4/ /etc/perl/ -- With Regards Abhishek Amberkar Learn to appreciate the beauty within...
That worked. I will make sure I write it down as part of my installation instructions. Thanks! Ed Edward J. Roche Network Administrator Solanco School District 717.786.2151 x2437 "At the End of the Day, Did You Play to Win or Not to Lose?" -----Original Message----- From: Abhishek Amberkar [अभिषेक] [mailto:abhishek.amberkar@gmail.com] Sent: Thursday, June 18, 2009 12:49 AM To: Roche III, Edward Cc: koha@lists.katipo.co.nz Subject: Re: [Koha] Can't locate C4/Context.pm 2009/6/18 Roche III, Edward <edward_roche@solanco.k12.pa.us>:
I know I have been down this road before but I am having the issue again. I run the (2) export commands:
export PERL5LIB=/usr/share/koha/lib (C4 is located here)
export KOHA_CONF=/etc/koha/koha-conf.xml (the file is located here)
But I still keep getting the error when running the perl /usr/share/koha/bin/migration_tools/rebuild_zebra.pl -b –w command
Can't locate C4/Context.pm in @INC (@INC contains: /etc/perl /usr/local/lib/perl/5.8.8 /usr/local/share/perl/5.8.8 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.8 /usr/share/perl/5.8 /usr/local/lib/site_perl .) at /usr/share/koha/bin/migration_tools/rebuild_zebra.pl line 5.
Copying C4 directory to /etc/perl/ should solve your problem. # cp -a /usr/share/koha/lib/C4/ /etc/perl/ -- With Regards Abhishek Amberkar Learn to appreciate the beauty within...
This will be a problem if you or anybody else in the future, ever tries to update that system. Essentially you are custom-hacking the perl installation. Neither CPAN, Koha nor the OS wil track this update. --Joe 2009/6/18 Roche III, Edward <edward_roche@solanco.k12.pa.us>
That worked. I will make sure I write it down as part of my installation instructions.
Thanks! Ed
Edward J. Roche Network Administrator Solanco School District 717.786.2151 x2437
"At the End of the Day, Did You Play to Win or Not to Lose?"
-----Original Message----- From: Abhishek Amberkar [अभिषेक] [mailto:abhishek.amberkar@gmail.com] Sent: Thursday, June 18, 2009 12:49 AM To: Roche III, Edward Cc: koha@lists.katipo.co.nz Subject: Re: [Koha] Can't locate C4/Context.pm
2009/6/18 Roche III, Edward <edward_roche@solanco.k12.pa.us>:
I know I have been down this road before but I am having the issue again. I run the (2) export commands:
export PERL5LIB=/usr/share/koha/lib (C4 is located here)
export KOHA_CONF=/etc/koha/koha-conf.xml (the file is located here)
But I still keep getting the error when running the perl /usr/share/koha/bin/migration_tools/rebuild_zebra.pl -b –w command
Can't locate C4/Context.pm in @INC (@INC contains: /etc/perl /usr/local/lib/perl/5.8.8 /usr/local/share/perl/5.8.8 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.8 /usr/share/perl/5.8 /usr/local/lib/site_perl .) at /usr/share/koha/bin/migration_tools/rebuild_zebra.pl line 5.
Copying C4 directory to /etc/perl/ should solve your problem.
# cp -a /usr/share/koha/lib/C4/ /etc/perl/
-- With Regards Abhishek Amberkar
Learn to appreciate the beauty within... _______________________________________________ Koha mailing list Koha@lists.katipo.co.nz http://lists.katipo.co.nz/mailman/listinfo/koha
I understand, I tried export again and still nothing. Is there a ENV file that I could just add the (2) export values to like would can in a Windows environment? Thanks! Ed Edward J. Roche Network Administrator Solanco School District 717.786.2151 x2437 "At the End of the Day, Did You Play to Win or Not to Lose?" From: Joe Atzberger [mailto:ohiocore@gmail.com] Sent: Thursday, June 18, 2009 10:16 AM To: Roche III, Edward Cc: Abhishek Amberkar [अभिषेक]; koha@lists.katipo.co.nz Subject: Re: [Koha] Can't locate C4/Context.pm This will be a problem if you or anybody else in the future, ever tries to update that system. Essentially you are custom-hacking the perl installation. Neither CPAN, Koha nor the OS wil track this update. --Joe 2009/6/18 Roche III, Edward <edward_roche@solanco.k12.pa.us> That worked. I will make sure I write it down as part of my installation instructions. Thanks! Ed Edward J. Roche Network Administrator Solanco School District 717.786.2151 x2437 "At the End of the Day, Did You Play to Win or Not to Lose?" -----Original Message----- From: Abhishek Amberkar [अभिषेक] [mailto:abhishek.amberkar@gmail.com] Sent: Thursday, June 18, 2009 12:49 AM To: Roche III, Edward Cc: koha@lists.katipo.co.nz Subject: Re: [Koha] Can't locate C4/Context.pm 2009/6/18 Roche III, Edward <edward_roche@solanco.k12.pa.us>:
I know I have been down this road before but I am having the issue again. I run the (2) export commands:
export PERL5LIB=/usr/share/koha/lib (C4 is located here)
export KOHA_CONF=/etc/koha/koha-conf.xml (the file is located here)
But I still keep getting the error when running the perl /usr/share/koha/bin/migration_tools/rebuild_zebra.pl -b –w command
Can't locate C4/Context.pm in @INC (@INC contains: /etc/perl /usr/local/lib/perl/5.8.8 /usr/local/share/perl/5.8.8 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.8 /usr/share/perl/5.8 /usr/local/lib/site_perl .) at /usr/share/koha/bin/migration_tools/rebuild_zebra.pl line 5.
Copying C4 directory to /etc/perl/ should solve your problem. # cp -a /usr/share/koha/lib/C4/ /etc/perl/ -- With Regards Abhishek Amberkar Learn to appreciate the beauty within... _______________________________________________ Koha mailing list Koha@lists.katipo.co.nz http://lists.katipo.co.nz/mailman/listinfo/koha
Roche III, Edward wrote:
I understand, I tried export again and still nothing. Is there a ENV file that I could just add the (2) export values to like would can in a Windows environment?
If using the bash shell (Debian's default), you can set up the export commands for your user account and/or the root user by editing these files: /home/yourusername/.bash_profile /root/.bash_profile That way the export is automatic every time you log into the shell. If you are not using the bash shell, your shell probably has an equivalent mechanism somewhere. -- Greg Barniskis, Computer Systems Integrator South Central Library System (SCLS) Library Interchange Network (LINK) <gregb at scls.lib.wi.us>, (608) 266-6348
2009/6/18 Joe Atzberger <ohiocore@gmail.com>:
This will be a problem if you or anybody else in the future, ever tries to update that system. Essentially you are custom-hacking the perl installation. Neither CPAN, Koha nor the OS wil track this update.
--Joe
What about `symlinking' then? Will it solve the problem? -- With Regards Abhishek Amberkar RDG Solutions Mumbai
I installed Debian Wheezy 7.8, then i update and upgrade the system with these source file list deb http://ftp.us.debian.org/debian wheezy main contrib deb-src http://ftp.us.debian.org/debian wheezy main contrib deb http://ftp.debian.org/debian/ wheezy-updates main contrib deb-src http://ftp.debian.org/debian/ wheezy-updates main contrib deb http://security.debian.org/ wheezy/updates main contrib deb-src http://security.debian.org/ wheezy/updates main contrib deb http://debian.koha-community.org/koha squeeze-dev main then i installed koha-common, i download koha3.18 and enter on koha3.18 directory and give commond : perl Makefile.PL, then make. when i give commond make test then it did't test and show error message bellow.... ed: ***** PROBLEMS LOADING FILE 'C4::InstallAuth' # Failed test 'use C4::InstallAuth;' # at t/00-load.t line 46. # Tried to use 'C4::InstallAuth'. # Error: Can't locate DateTime/Format/DateParse.pm in @INC (you may need to install the DateTime::Format::DateParse module) (@INC contains: /home/koha/koha-3.18.05.1/blib/PERL_MODULE_DIR /home/koha/koha-3.18.05.1/blib/arch /usr/share/koha/lib /usr/share/koha/lib /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.20.2 /usr/local/share/perl/5.20.2 /usr/lib/x86_64-linux-gnu/perl5/5.20 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.20 /usr/share/perl/5.20 /usr/local/lib/site_perl .) at /home/koha/koha-3.18.05.1/blib/PERL_MODULE_DIR/Koha/DateUtils.pm line 23. # BEGIN failed--compilation aborted at /home/koha/koha-3.18.05.1/blib/PERL_MODULE_DIR/Koha/DateUtils.pm line 23. # Compilation failed in require at /home/koha/koha-3.18.05.1/blib/PERL_MODULE_DIR/C4/Koha.pm line 29. # BEGIN failed--compilation aborted at /home/koha/koha-3.18.05.1/blib/PERL_MODULE_DIR/C4/Koha.pm line 29. # Compilation failed in require at /home/koha/koha-3.18.05.1/blib/PERL_MODULE_DIR/C4/InstallAuth.pm line 28. # BEGIN failed--compilation aborted at /home/koha/koha-3.18.05.1/blib/PERL_MODULE_DIR/C4/InstallAuth.pm line 28. # Compilation failed in require at t/00-load.t line 46. # BEGIN failed--compilation aborted at t/00-load.t line 46. # Tests were run but no plan was declared and done_testing() was not seen. # Looks like your test exited with 255 just after 4. FAILED--Further testing stopped: ***** PROBLEMS LOADING FILE 'C4::InstallAuth' Makefile:19891: recipe for target 'test_dynamic' failed make: *** [test_dynamic] Error 255 Pls any one help me to give a right advise -- View this message in context: http://koha.1045719.n5.nabble.com/Can-t-locate-C4-Context-pm-tp3060130p58424... Sent from the Koha-general mailing list archive at Nabble.com.
Foiz Ahmed schreef op ma 01-06-2015 om 06:16 [-0700]:
I installed Debian Wheezy 7.8, then i update and upgrade the system with these source file list
Where did you get the instructions for this? They look quite out of date, and a bit wrong.
deb http://debian.koha-community.org/koha squeeze-dev main
This is the old way of getting the in-development Koha release, which you probably don't want unless you know why you do.
then i installed koha-common,
This installs Koha for you, but it will be the development version. If you want 3.18 specifically (though 3.20 was just released), then you should use the 'oldstable' part of the repository.
i download koha3.18 and enter on koha3.18
Why did you download 3.18 when it's already packaged anyway?
# Error: Can't locate DateTime/Format/DateParse.pm in @INC (you may need to install the DateTime::Format::DateParse module) (@INC contains:
Dependencies change over time, and this is one of those that I think may not be used in the newer versions. But anyway: if this process had succeeded, you would have ended up with two versions of Koha installed, which would be really confusing, so it's probably for the best that it didn't :) My suggestion would be to follow the instructions here: http://wiki.koha-community.org/wiki/Debian -- Robin Sheat Catalyst IT Ltd. ✆ +64 4 803 2204 GPG: 5FA7 4B49 1E4D CAA4 4C38 8505 77F5 B724 F871 3BDF
participants (6)
-
Abhishek Amberkar [अभिषेक] -
Foiz Ahmed -
Greg Barniskis -
Joe Atzberger -
Robin Sheat -
Roche III, Edward