| TWiki version: | TWikiRelease01Feb2003 |
| TWiki plugins: | DefaultPlugin, EmptyPlugin, InterwikiPlugin |
| Server OS: | win2k/cygwin |
| Web server: | apache 1.3.28 |
| Perl version: | 5.6.1 |
| Client OS: | same |
| Web Browser: | mozilla phoenix |
testenv output - this is MUCH more useful than just having a few snippets mentioned in your posting, and should help us solve this issue. See SupportGuidelines for how to log support requests that will are more likely to get a useful response.
-- RichardDonkin - 21 Oct 2003
[Fri Oct 17 16:18:11 2003] [error] [client 127.0.0.1] Premature end of script headers: c:/documents and settings/meikegb/website/twiki/bin/testenv [Fri Oct 17 16:18:11 2003] [error] [client 127.0.0.1] Can't locate vars.pm in @INC (@INC contains: ../lib /usr/lib/perl5/5.6.1/cygwin-multi /usr/lib/perl5/5.6.1 /usr/lib/perl5/site_perl/5.6.1/cygwin-multi /usr/lib/perl5/site_perl/5.6.1 /usr/lib/perl5/site_perl .) at c:\DOCUME~1\meikegb\website\twiki\bin\testenv line 35. [Fri Oct 17 16:18:11 2003] [error] [client 127.0.0.1] BEGIN failed--compilation aborted at c:\DOCUME~1\meikegb\website\twiki\bin\testenv line 35.In cygwin's cli environment, "vars.pm" is in the libpath:
cygwin>ls /usr/lib/perl5/5.6.1/vars.pm /usr/lib/perl5/5.6.1/vars.pm... and in that (the cli) environment, testenv will run. Here's the output:
So, just wondering, what was the solution? Other folks might have the same issue and would appreciate your insight.
-- PeterThoeny - 09 Nov 2003
Hi, I'm one of those folks who has run across the problem that BlakeMeike encountered, and fixed. I tried email, but that didn't work.
What was the solution? Peter was right that others [myself] would also stumble at this point.
I've installed twiki maybe 10 times at different work places, and I didn't commit this schoolboy error then, so I am curious as to what the fix is here. One of the painful bits of computer association is building up the minutiae of fixes. One more to add to the stack by the sounds of things.
Just kidding, I am going to let everyone know what was wrong. If you get this problem it is because your %PATH% is not set for the Apache service properly. I was on an NT Domain, and had set my user %PATH% to include c:/cygwin/bin where Perl resides. But the Apache service runs as System , and so my %PATH% was not hitting it. I incorrectly fixed this by setting the service to run as my own account. This caused downstream problems, in that Taint checking caused a barf. There is a good solution to that problem already posted under another topic. I can't remember what it is, but if you get the error message, when you put the message into Google, the answer comes up No. #1, so just about as easy as a hyperlink anyway.
So, for the correct solution I had to get the Sys Admin to come add c:/cygwin/bin to the System %PATH%.
What I will say, the Taint checking caused me further grief, and I took the risk of removing it. Whilst it is better to find a solution if you have the time, I am under quite a time constraint on this Contract currently, and my employers would take a very dim view of me taking a further 3 hours to iron out the bugs. This is an internal Twiki, and not one likely to have malicious attacks thrown at it.
What I did was
cd /c/twiki/bin perl -pi~ -e 's;#!c:/cygwin/bin/perl -wT;#!c:/cygwin/bin/perl -w;' *[a-z]This removes taint checking and WILL get it working, but if you CAN find a better solution in the time you've got, DO.
| I | Attachment | Action | Size | Date | Who | Comment |
|---|---|---|---|---|---|---|
| |
te.html | manage | 13.8 K | 2003-10-21 - 18:43 | BlakeMeike | Output of: "cd c:/twiki/bin; ./testenv > te.html |