delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2009/08/27/11:12:17

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-2.3 required=5.0 tests=AWL,BAYES_00
X-Spam-Check-By: sourceware.org
Message-ID: <4A96A236.9030801@bopp.net>
Date: Thu, 27 Aug 2009 10:11:50 -0500
From: Jeremy Bopp <jeremy AT bopp DOT net>
User-Agent: Thunderbird 2.0.0.23 (Windows/20090812)
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: Changing HOME for PERL
References: <CC93624851A47D42AFD22FB06BCD2D9A0234B8A7 AT CORPUSMX80B DOT corp DOT emc DOT com> <4A959537 DOT 7020900 AT bopp DOT net> <CC93624851A47D42AFD22FB06BCD2D9A0234B90D AT CORPUSMX80B DOT corp DOT emc DOT com> <4A95AA6A DOT 9010909 AT bopp DOT net> <CC93624851A47D42AFD22FB06BCD2D9A0234BB33 AT CORPUSMX80B DOT corp DOT emc DOT com> <4A9697B2 DOT 6050101 AT bopp DOT net> <CC93624851A47D42AFD22FB06BCD2D9A0234BBCD AT CORPUSMX80B DOT corp DOT emc DOT com> <h766kg$359$2 AT ger DOT gmane DOT org> <CC93624851A47D42AFD22FB06BCD2D9A0234BBF8 AT CORPUSMX80B DOT corp DOT emc DOT com>
In-Reply-To: <CC93624851A47D42AFD22FB06BCD2D9A0234BBF8@CORPUSMX80B.corp.emc.com>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
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

Dexter_Michael AT emc DOT com wrote:
> It seems my Cygwin has attached itself to the PERL on my C drive and not
> the cygwin Perl.   How do I change that?  Also debugger seemed to work
> too.
> 
> dextem AT USENDEXTEML1C /usr/bin
> $ which perl
> /cygdrive/c/PERL/BIN/perl
> 
> dextem AT USENDEXTEML1C /usr/bin
> $ which Perl
> /cygdrive/c/PERL/BIN/Perl

You have C:\PERL\BIN in your PATH environment variable before /usr/bin.
 Run the following in your Cygwin shell:

echo $PATH

You will likely see something like the following:

/cygdrive/c/PERL/BIN:/usr/bin:/bin:(and so on)

When running perl as "perl" in your shell, the shell searches each
directory in the list from left to right for an executable file named
perl (or perl.exe under Cygwin).  However, none of that will affect your
scripts because they are specifically calling out for using
/usr/bin/perl.  In order to run Andrew's test with the Cygwin-based
Perl, do the following:

/usr/bin/perl -de 1

-Jeremy

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


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