How can I modify my cygwin environment to use Strawberry Perl instead of the packaged Perl distribution?

前端 未结 8 1258
一整个雨季
一整个雨季 2020-12-31 07:59

I currently use Strawberry Perl as my primary Perl distribution. However, I have some applications that make Perl calls through cygwin. These generally fail because they are

8条回答
  •  被撕碎了的回忆
    2020-12-31 08:31

    If you remove Perl from cygwin using the setup program it will use Strawberry Perl by default.

    If you are unable to remove Perl from cygwin, you can create a symbolic link to the Perl executable from Strawberry.

    From a cygwin shell, use the following set of commands:

    $ mv /usr/bin/perl /usr/bin/perl-cygwin
    $ ln -s /cygdrive/c/strawberry/perl/bin/perl.exe /usr/bin/perl
    

    This is assuming you used the default Strawberry Perl installer. Update your perl.exe location accordingly if you have it installed somewhere else.

    Check to make sure the link is working properly by checking the Perl version:

    $ perl -v
    

    It should say This is perl, (version) built for MSWin32-x86-multi-thread (or similar) and not built for cygwin-thread-multi-64int.

提交回复
热议问题