Location of Perl libraries/Premature end of script headers
Can anyone tell me how the Koha install process locates the Perl libraries, and where it stores this information? I see that the "Premature end of script headers" message has been discussed here before, but it seems to be such a primitive problem that it's hard to give a useful response. I've just been installing Koha today, on a Solaris box, so I don't know what I'm doing, but: The opac error log gives me a pretty concrete problem that needs fixing. The log messages below show where Koha looked for the HTML/Template.pm: [Mon Jan 12 14:01:47 2004] [error] [client 128.252.66.103] Premature end of script headers: /usr/streamv/koha/opac/cgi-bin/ opac-main.pl [Mon Jan 12 14:01:47 2004] [error] [client 128.252.66.103] Can't locate HTML/Template.pm in @INC (@INC contains: /usr/streamv/koha/intranet/modules /usr/perl5/5.00503/sun4-solaris /usr/perl5/5.00503 /usr/perl5/site_perl/5.005/sun4-solaris /usr/perl5/site_perl/5.005 .) at opac-main.pl line 5. [Mon Jan 12 14:01:47 2004] [error] [client 128.252.66.103] BEGIN failed--compilation aborted at opac-main.pl line 5. However, the following was extracted from the output of the "perl -V" command: @INC: /usr/local/lib/perl5/5.8.0/sun4-solaris /usr/local/lib/perl5/5.8.0 /usr/local/lib/perl5/site_perl/5.8.0/sun4-solaris /usr/local/lib/perl5/site_perl/5.8.0 /usr/local/lib/perl5/site_perl And, indeed, the Template.pm file is found in that search list. Regards, Jeff Huestis _,=~^~=,_,=~^~=,_,=~^~=,_,=~^~=,_,=~^~=,_,=~^~=,_,=~^~=,_,=~^~=,_,=~^~=, _ Jeffrey C. Huestis huestis@wustl.edu Director, Applications and http://library.wustl.edu/~huestis Information Resource Development Washington University Libraries Voice: 314-935-5951 Campus Box 1061 Fax: 314-935-4045 St. Louis, MO 63130 ^~=,_,=~^~=,_,=~^~=,_,=~^~=,_,=~^~=,_,=~^~=,_,=~^~=,_,=~^~=,_,=~^~=,_,=~ ^
On 2004-01-12 20:59:35 +0000 Jeff Huestis <huestis@wustl.edu> wrote:
Can anyone tell me how the Koha install process locates the Perl libraries, and where it stores this information?
It uses Perl to do it. It doesn't store it anywhere and relies on Perl being able to find them again. perl -MHTML::Template -e print will do a similar sort of check from the command line. The output you pasted is interesting. When you run from the command-line, you seem to get perl 5.8.0, but your webserver looks like it's using perl 5.00503 -- is koha using /usr/bin/perl (look at the first line of its CGI scripts) while you're using /usr/local/bin/perl, perhaps? -- MJR/slef My Opinion Only and possibly not of any group I know. Please http://remember.to/edit_messages on lists to be sure I read http://mjr.towers.org.uk/ gopher://g.towers.org.uk/ slef@jabber.at Creative copyleft computing services via http://www.ttllp.co.uk/
participants (2)
-
Jeff Huestis -
MJ Ray