Subject: | Under cygwin, cygwin's 'cpan' is used instead of Strawberry's 'cpan.bat' |
I have a strong Unix background, which is why I have a very complete
Cygwin environment installed on my PCs, so they can add least be used
for something useful. And have fun while doing that.
I have installed 3 perls on Cygwin: Cygwin's perl in /usr, perl-5.8.8
in /pro and perl-5.10.0 also in /pro. I have also installed Activeperl.
I installed Strawberry to test my modules with and wanted to install
the base modules I need. First thing was to write a script that starts
a "Strawberry Perl Shell":
--8<---
/C/Bin 502 $ cat sperl-sh
#!/bin/sh
PATH=/C/strawberry/perl/bin:/C/strawberry/c/bin:$PATH
export PATH
bash $@
-->8---
When I intuitively type
/C/Bin 501 $ cpan V
to install V, it is installed in the cygwin environment, as /pro/bin/
cpan is used instead of /C/strawberry/perl/cpan.bat
I'd suggest to add /C/strawberry/perl/cpan. I have no fixed idea about
what type of file it should be (perl, sh, bash).
I created a symlink in cygwin