Tags:
create new tag
, view all tags

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

TWiki version: TWikiRelease04x01x02
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS: Windows XP SP2
Web server: Apache 2.2.4
Perl version: 5.8.4
Client OS: Windows XP SP2
Web Browser: Firefox 2.0.0.4, IE 7.0.5730.11
Categories: Installation, Fatal error, Deployment

-- RobinWilson - 17 Jul 2007

Answer

ALERT! If you answer a question - or have a question you asked answered by someone - please remember to edit the page and set the status to answered. The status is in a drop-down list 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

 
Change status to:
Topic attachments
I Attachment Action Size Date Who Comment
Unknown file formatcfg setlib.cfg manage 1.8 K 2007-07-17 - 23:37 RafaelAlvarez  
Topic revision: r3 - 2007-09-01 - CrawfordCurrie
 
Twitter Delicious Facebook Digg Google Bookmarks E-mail LinkedIn Reddit StumbleUpon    
  • Download TWiki
TWiki logo Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2012 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.