I need to add a path to @INC for KOHA, how?
Hi all, I am in the process of installing KOHA on a Debian Sarge system, and I am kind of stuck. I need to add the path /usr/local/koha/intranet/modules/C4 to @INC, perl complians that it cannot find this path, and rightly so, because it is not in @INC I found http://www.perl.com/pub/a/2002/05/14/mod_perl.html?page=2, with some helpful information, but it does not solve my problem, I keep getting errors. Maybe I missed something? (Like when I found out you need SetEnvIf in Debian instead of SetEnv) I know hardly anything about perl, so please be patient (and descriptive) and if someone can show some examples it would be most welcome... Thanks! Marty Jongepier
List members, At 09:07 PM 1/2/06 -0500, Marty Jongepier wrote:
Hi all,
I am in the process of installing KOHA on a Debian Sarge system, and I am kind of stuck.
I need to add the path /usr/local/koha/intranet/modules/C4 to @INC, perl complians that it cannot find this path, and rightly so, because it is not in @INC
I have Koha installed and running on Debian Woody at a museum where I do volunteer work as a librarian, and I'm having the same problem when trying to use bulkmarcimport.pl to import MARC21 records. I checked the Koha mailing list archive and found an e-mail from Stephen Hedges--http://lists.katipo.co.nz/pipermail/koha/2005/008650.html , dated 1-22-2005--which suggests a fix to use in the bulkmarcimport.pl script. Unfortunately, this e-mail doesn't discuss why this problem with the @INC array exists in the first place. If someone could point out which Koha Perl script sets the contents of the @INC array, where the script is located, and how I can modify it, I would appreciate it. (I do have some experience with Perl.) If someone could also suggest a reason why the script responsible for @INC isn't including the path to C4, that might also be helpful. Finally, is there a command I can use to view the contents of @INC (other than trying to use bulkmarcimport.pl and reading its error message)? It does not appear when I use the env command to view environment variables. Thanks in advance for your assistance. Andro P. Gagné P.O. Box 715 Canandaigua, NY 14424
Hi, perl -V will give you the current value of @INC. you can also print it out using standard perl as it is an array. To add additional paths to @INC, one way is to use the use lib pragma but this should not be necessary as the koha programs should take care of these. The problems are being encountered due to variations in local installation directions and the use lib pragma is therefore needed to point the correct paths. Alfred, Andro Gagne wrote:
List members,
At 09:07 PM 1/2/06 -0500, Marty Jongepier wrote:
Hi all,
I am in the process of installing KOHA on a Debian Sarge system, and I am kind of stuck.
I need to add the path /usr/local/koha/intranet/modules/C4 to @INC, perl complians that it cannot find this path, and rightly so, because it is not in @INC
I have Koha installed and running on Debian Woody at a museum where I do volunteer work as a librarian, and I'm having the same problem when trying to use bulkmarcimport.pl to import MARC21 records. I checked the Koha mailing list archive and found an e-mail from Stephen Hedges--http://lists.katipo.co.nz/pipermail/koha/2005/008650.html , dated 1-22-2005--which suggests a fix to use in the bulkmarcimport.pl script. Unfortunately, this e-mail doesn't discuss why this problem with the @INC array exists in the first place. If someone could point out which Koha Perl script sets the contents of the @INC array, where the script is located, and how I can modify it, I would appreciate it. (I do have some experience with Perl.) If someone could also suggest a reason why the script responsible for @INC isn't including the path to C4, that might also be helpful. Finally, is there a command I can use to view the contents of @INC (other than trying to use bulkmarcimport.pl and reading its error message)? It does not appear when I use the env command to view environment variables.
Thanks in advance for your assistance.
Andro P. Gagné P.O. Box 715 Canandaigua, NY 14424
_______________________________________________ Koha mailing list Koha@lists.katipo.co.nz http://lists.katipo.co.nz/mailman/listinfo/koha
Alfred, At 04:30 PM 1/3/06 +1000, you wrote:
Hi, perl -V will give you the current value of @INC.
Thanks for this. I probably should have known it, but obviously did not or did not remember it.
you can also print it out using standard perl as it is an array.
To add additional paths to @INC, one way is to use the use lib pragma
This is the solution offered in the list's archive for use in the bulkmarcimport.pl script.
but this should not be necessary as the koha programs should take care of these.
That is what I figured. Is this something that can be fixed rather than using the "use lib" pragma in bulkmarcimport.pl as well as in other Koha scripts that need to access a Perl module in the C4 subdirectory? Best regards, Andro P. Gagné P.O. Box 715 Canandaigua, NY 14424
participants (3)
-
Alfred Vahau -
Andro Gagne -
Marty Jongepier