On Tue, 31 Aug 2004, Frank Wein wrote:
Hi,
i wanted to use cygwin perl for executing perl scripts from (win32, the one from apache.org, not the cygwin one) Apache, so i included the line #!D:/cygwin/bin/perl.exe -w in my CGIs.
Umm, there might be another problem with this approach (not the one you're having), and that is that perl gets the Win32 path to the script, rather than the Cygwin (POSIX) one. This *may* cause errors once you fix the current problem, but those will have to be debugged separately. OTOH, it may just work.
But now i have the problem that perl looks in the wrong folder for the Perl Modules, for example if i want to load Archive::Zip, it tries to load it from D:\usr\lib\perl5\site_perl\5.8.5\XML\Simple.pm instead of D:\cygwin(\usr)\lib\perl5\site_perl\5.8.5\XML\Simple.pm. So i wonder if this is a bug in cygwin perl or rather a bug in Apache (or a error from my side even?).
It's your error, but one that's easy to fix. Read on.
I attached the cygcheck output, if it matters.
YES! YES! YES!!! Finally someone actually *read* the problem reporting guidelines and *attached* the cygcheck output! Thank you!
BTW, it does matter a lot. One thing that your cygcheck output shows is that your mounts are user mounts (you installed Cygwin for "Just Me"), and therefore anything invoked from Apache running as a service (as I assume it does) won't see them properly. Try re-mounting your "/", "/usr/bin", and "/usr/lib" as system mounts (Google for "cygwin remount system", for example), and see if it helps.
My OS is Windows 2000, Apache was 2.0.50, Cygwin is 1.5.10-cr-0x5e6.
^^^^^^^^^ Hmm, I wonder what gave you this output... Igor -- http://cs.nyu.edu/~pechtcha/ |\ _,,,---,,_ [EMAIL PROTECTED] ZZZzz /,`.-'`' -. ;-;;,_ [EMAIL PROTECTED] |,4- ) )-,_. ,\ ( `'-' Igor Pechtchanski, Ph.D. '---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow!
"Happiness lies in being privileged to work hard for long hours in doing whatever you think is worth doing." -- Dr. Jubal Harshaw
-- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/