delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2007/11/06/12:08:36

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Message-ID: <31b7d2790711060907rf21e581j742ff91897a65cc2@mail.gmail.com>
Date: Tue, 6 Nov 2007 11:07:30 -0600
From: "DePriest, Jason R." <jrdepriest AT gmail DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: Wish Setup would accept my Perl
In-Reply-To: <001501c82094$434e4230$2e08a8c0@CAM.ARTIMI.COM>
MIME-Version: 1.0
References: <loom DOT 20071105T183528-568 AT post DOT gmane DOT org> <fgq3au$q89$1 AT ger DOT gmane DOT org> <183c528b0711060821u278c0775of56ba7e004aaf180 AT mail DOT gmail DOT com> <001501c82094$434e4230$2e08a8c0 AT CAM DOT ARTIMI DOT COM>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT 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

On 11/6/07, Dave Korn <> wrote:
> On 06 November 2007 16:21, Brian Mathis wrote:
>
> > I must say with respect that if there are problems porting from
> > Activestate to linux/unix, that's a problem with the programmer who
> > wrote the code, not Perl.  There's no reason that code that's general
> > in nature would not be portable.
>
>   Does Activestate perl parse unix/posix style paths with a single common '/'
> filesystem root?
>
>   If not, case closed I'd say.
>
>   Not to mention ...
>
> --------------->from the AS perl docs<---------------
- - - - cut wordy badness - - - -
> ---------------------->end snip<---------------------
>
>   IOW, Perl is not a write-once-run-anywhere language, and AS perl cannot be
> assumed to satisfy the requirements that any random cygwin package that
> requires perl may impose.
>
>     cheers,
>       DaveK
> --
> Can't think of a witty .sigline today....
>

So, to help the OP's: use your perl installation as it was intended.
I have ActiveState Perl installed and cygwin perl.

I also have ActiveState Python and cygwin python.

I have no problems when I use each version in the appropriate environment.

Simple scripts can be written that will run in both environments.
Heck, some of the Win32 stuff has even been ported to cygwin (see
setup.exe).

I once, like you, wondered why I couldn't just have one installation
of Perl or Python that works in either environment.  Since I write
scripts, not code, I assumed it was because it was just too hard to do
and began to use each program in its appropriate place.

Cygwin handles the pathing so I never have a problem with a cygwin
bash prompt trying to call C:\Perl\bin\perl when I just use 'perl'.
It checks /usr/bin/perl first.

Use as intended.

-Jason

PS - I use PPM to manage perl modules for ActiveState Perl and cpan to
manage modules for cygwin perl.  PPM is super-Windows-centric.

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