Question
Hi, I've just recently installed twiki on my home computer for a project, I followed the windows installation cookbook in details, everything seems to be fine. but when I point the browser to the testenv, it gives error 500, I checked the error.log file of apache. It gives this report:
- [Mon Feb 14 15:14:46 2005] [error] [client 127.0.0.1] Premature end of script headers: p:/twiki/bin/testenv
- [Mon Feb 14 15:14:46 2005] [error] [client 127.0.0.1] Can't locate vars.pm 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 /usr/lib/perl5/vendor_perl/5.8/cygwin /usr/lib/perl5/vendor_perl/5.8 /usr/lib/perl5/vendor_perl/5.8 .) at p:\\twiki\\bin\\testenv line 32.\n
- [Mon Feb 14 15:14:46 2005] [error] [client 127.0.0.1] BEGIN failed--compilation aborted at p:\\twiki\\bin\\testenv line 32.\n
- also the strict.pm is found in /lib/perl/5.8/strict.pm and /usr/lib/perl5/5.8/strict.pm
any idea what caused this?
Sorry i'm new to this wiki thing
Environment
--
GilbertAliwarga - 14 Feb 2005
Answer
It looks like your perl installation is up the creek.
vars.pm is basic to a perl installation. This is not a wiki problem, it's a perl problem. Try running the testenv script from the command line.
--
CrawfordCurrie - 20 Feb 2005
how do I do that? Or do i need to change from cgywin to activestate will that do any help
? Also i tried the other script, like view it still gives me the same error...... Is there anything to solve this problem? I've added the testenv html dump.
--
GilbertAliwarga - 20 Feb 2005
As I said, this is an Apache and not a TWiki problem. Try running the perl script I gave in
TestEnvQuitsAfterUseTwikiPm, after modifying the first line as appropriate for cygwin, and reporting back with what happens. Oh, and check that vars.pm is somewhere on your perl path.
--
CrawfordCurrie - 21 Feb 2005
--
GilbertAliwarga - 21 Feb 2005
Tried running the script still reports 500 internal error from apache, the apache error logs indicate it cannot find cgi.pm in @inc. Running blah from CLI gives me a syntax error on the cygwin console at line8, near "@; print". I checked also that I do have vars.pm in my cygwin path which is under "/lib/perl5/5.8/vars.pm" and "/usr/lib/.../vars.pm".
--
GilbertAliwarga - 21 Feb 2005
At this point I have to tell you either your Apache installation is screwed, or your perl installation is screwed. If it can't find vars.pm - one of the most basic modules in perl - or CGI.pm, but the path in @INC is correct, then you are in deep trouble.
Look at the error message in the apache log. Does one of the directories on the @INC path point to the place where vars.pm lives? You don't care about
your cygwin path, it has to be on the
web server users cygwin path that points to it.
--
CrawfordCurrie - 22 Feb 2005
The apache error message does shows that one of directories included in @inc points to one of the path where Vars.pm and CGI.pm lives, which is "_/usr/lib/perl5/5.8 _". Do I need to change the Httpd config for /cgi-bin handler to point to cgywin? Thank you for your help
--
GilbertAliwarga - 23 Feb 2005
SOrry my bad, I reinstalled cygwin to for everyone, previously it's "just me". Problem solved, sorry for this inconvenience and Thank you all for answering my question.
--
GilbertAliwarga - 24 Feb 2005