www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/08/31/13:07:08

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Date: Tue, 31 Aug 2004 13:06:58 -0400 (EDT)
From: Igor Pechtchanski <pechtcha AT cs DOT nyu DOT edu>
Reply-To: cygwin AT cygwin DOT com
To: Frank Wein <mcsmurf AT gmx DOT de>
cc: cygwin AT cygwin DOT com
Subject: Re: Perl searching in wrong path for modules?
In-Reply-To: <4134A00B.2040902@gmx.de>
Message-ID: <Pine.GSO.4.61.0408311255230.3353@slinky.cs.nyu.edu>
References: <4134A00B DOT 2040902 AT gmx DOT de>
MIME-Version: 1.0
X-Scanned-By: MIMEDefang 2.39

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/
      |\      _,,,---,,_		pechtcha AT cs DOT nyu DOT edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor AT watson DOT ibm DOT com
     |,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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019