delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2010/02/08/14:50:38

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-2.6 required=5.0 tests=BAYES_00
X-Spam-Check-By: sourceware.org
Message-ID: <4B706AF8.1020401@x-ray.at>
Date: Mon, 08 Feb 2010 20:50:16 +0100
From: Reini Urban <rurban AT x-ray DOT at>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.9.1.7) Gecko/20100104 SeaMonkey/2.0.2
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: ActiveState Perl and Cygwin How To
References: <a81c2f2d1002070721g30dbda89n44dda7ac80be6131 AT mail DOT gmail DOT com>
In-Reply-To: <a81c2f2d1002070721g30dbda89n44dda7ac80be6131@mail.gmail.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

raphael() schrieb:
> I have been using Cygwin for quite some time now on Windows XP. I use
> Perl extensively and the scripts I use/create are fairly portable.
> I want to use ActiveState Perl as I can install many modules from CPAN
> that give me trouble in Cygwin using cpan install ...
>
> The problem is that AS Perl cannot find the Perl script I invoke on
> the command line as the script's PATH that Cygwin reports to AS Perl
> is a unix one i.e. /cygdrive/c/cygwin/home/.../bin whereas AS Perl
> requires it in C:\cygwin\home\...\bin\. The Perl script is in PATH.
>
> This happens only with AS Perl (duh) as it requires backslash
> delimited path. I have searched somewhat on the web regarding this but
> haven't found anything.
> There are bash scripts that act in between and convert unix path to
> windows before invoking AS Perl but you still have to give it complete
> script path like
>
> $ bash_convert.sh /home/.../bin/perlscript.pl -h
>
> this will give C:\Perl\bin\perl.exe C:\cygwin\home\...\bin\perlscript.pl -h
>
> But what I want is that it should work directly like perlscr{TAB}
> {ENTER} and voilą working :)
>
> Any Ideas?

Yes.
Use AS Perl with your cmd.exe shell and cygwin perl
with your cygwin shell. No conflicts, if you keep your
PATH straight.

Which cpan conflicts?
AFAIK on cygwin pass much more CPAN modules than on AS Perl.

With AS Perl you use ppm or ppm3, with cygwin perl cpan.
-- 
Reini Urban

--
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