This is the mail archive of the cygwin mailing list for the Cygwin project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: ActiveState Perl and Cygwin How To

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

$ /home/.../bin/ -h

this will give C:\Perl\bin\perl.exe C:\cygwin\home\...\bin\ -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:
Unsubscribe info:

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]