Question
Newby problem:
I have installed Twiki on a Windows XP(SP2) machine, using Apache 2 and Cygwin Perl (at least I think that's what it's using - honestly, it is so confusing that I'm not 100% sure of most of it). I ran "configure", it after going through several rounds of errors and warnings I now have it configured without
any warnings (FYI, one of the big problems for me has been the switch - gratuitous in my mind - from "setlib.cfg" and similar names to "LocalLib.cfg" and "LocalSite.cfg", which doesn't come up on most searches for help!). But when I go to "http://.../view/TWiki/WebHome", I get a 500 error. (In firefox, it is rendered as unformatted text - in IE it renders a true 500 error). In the Apache 2 log, I see the following error related to this (the first line is the last line from the startup notifications - everything after that is from the request to the failing page):
[Tue Jul 17 17:43:26 2007] [notice] Child 2384: Starting thread to listen on port 80.
[Tue Jul 17 17:43:40 2007] [error] [client 127.0.0.1] Premature end of script headers: view, referer:
http://localhost/bin/configure
[Tue Jul 17 17:43:40 2007] [error] [client 127.0.0.1] Can't locate setlib.cfg in
@INC
(
@INC
contains: . /usr/lib/perl5/5.8/cygwin /usr/lib/perl5/5.8 /usr/lib/perl5/site_perl/5.8/cygwin /usr/lib/perl5/site_perl/5.8 /usr/lib/perl5/site_perl/5.8/cygwin /usr/lib/perl5/site_perl/5.8 /usr/lib/perl5/vendor_perl/5.8/cygwin /usr/lib/perl5/vendor_perl/5.8 /usr/lib/perl5/vendor_perl/5.8/cygwin /usr/lib/perl5/vendor_perl/5.8) at U:/abba/bin/view line 27., referer:
http://localhost/bin/configure
[Tue Jul 17 17:43:40 2007] [error] [client 127.0.0.1] BEGIN failed--compilation aborted at U:/abba/bin/view line 28., referer:
http://localhost/bin/configure
So, I look in "view", and I see that there is a line:
require 'setlib.cfg';
But I have no "setlib.cfg", instead I have "LocalLib.cfg".
I have tried copying "LocalLib.cfg" to "setlib.cfg", but I get a different error.
So, what's the difference between "setlib.cfg" and "LocalLib.cfg", and/or should that make the difference in this working?
Should I just dump Apache 2.x and find an old (very old) Apache 1.3 binary and use it instead (seems sort of silly to me)?
Do I need to load mod_perl in Apache?
HELP!
(Thanks in advance...)
--
RobinWilson
Environment
--
RobinWilson - 17 Jul 2007
Answer
If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.
Weird... you SHOULD have a setlib.cfg file in your bin directory, it's both in the distribution and in the Subversion repository....
I have attached my setlib.cfg, but please check out if it's missing in the zip file...
--
RafaelAlvarez - 17 Jul 2007
As for the differences:
LocalLib.cfg is used to define all the paths that should be in
@INC
. As this is dependant on each configuration, only a template file is provided.
setlib.cfg, OTOH, tries to guess the paths that should be in
@INC
if nothing is specified in
LocalLib.cfg
--
RafaelAlvarez - 17 Jul 2007
I guess they found the answer. Closing.
--
CrawfordCurrie - 01 Sep 2007