$ cygcheck /usr/bin/perl
and
$ ldd /usr/bin/perl'
did not show any error

but I "reinstalled" all packages listed in 
$ cygcheck -i --deps perl
=> cygwin, libcrypt2, libdb18.1, libgcc1, libgdbm6, libgdbm_compat4, perl5_040, 
perl_base, zlib0

after the reinstall, perl works again

$ perl -v

This is perl 5, version 40, subversion 2 (v5.40.2) built for 
x86_64-cygwin-threads-multi
(with 3 registered patches, see perl -V for more detail)

Copyright 1987-2025, Larry Wall

Perl may be copied only under the terms of either the Artistic License or the
GNU General Public License, which may be found in the Perl 5 source kit.

Complete documentation for Perl, including FAQ lists, should be found on
this system using "man perl" or "perldoc perl".  If you have access to the
Internet, point your browser at https://www.perl.org/, the Perl Home Page.

$ echo 'print "Hello Perl\n"' | perl
Hello Perl

thanks a lot!



Apr 17, 2025, 20:25 by cygwin@cygwin.com:

> On 4/17/2025 9:52 AM, Michael via Cygwin wrote:
>
>> After running cygwin-setup and updating all cygwin-packages, perl no longer 
>> seems to work (or maybe a coincidence).
>>
>> Executing "perl" without any argument normally let perl wait for input from 
>> stdin/keyboard.
>> But it immediately returns to the prompt (same behavior as 'echo ""').
>> I can do
>> perl
>> perl -v
>> perl -e 'print "Hello Perl\n"'
>>
>> same result for all 3 of them (equal to 'echo ""').
>>
> [snip]
> That usually means a library is missing.
>
> Try:
>
> $ cygcheck /usr/bin/perl
> C:\Cygwin\bin\perl.exe
>  C:\Cygwin\bin\cygperl5_40.dll
>  C:\Cygwin\bin\cygcrypt-2.dll
>  C:\Cygwin\bin\cygwin1.dll
>  C:\WINDOWS\system32\KERNEL32.dll
>  C:\WINDOWS\system32\ntdll.dll
>  C:\WINDOWS\system32\KERNELBASE.dll
>  C:\Cygwin\bin\cyggcc_s-seh-1.dll
>
> or 'ldd /usr/bin/perl' and see if any library is marked as not found.
>
> The problem could be a bad PATH, which finds another library of the same name 
> first, a deleted/not installed library (find dependencies with
> 'cygcheck -i --deps perl').
> -- 
> R.B.
>
> -- 
> Problem reports:      https://cygwin.com/problems.html
> FAQ:                  https://cygwin.com/faq/
> Documentation:        https://cygwin.com/docs.html
> Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple
>


-- 
Problem reports:      https://cygwin.com/problems.html
FAQ:                  https://cygwin.com/faq/
Documentation:        https://cygwin.com/docs.html
Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple

Reply via email to