Perl-Dist-Strawberry
Perl-Dist-Strawberry copied to clipboard
Can't load Win32.xs.dll when running cpanm
I have placed the portable edition into a Windows nanoserver container. A hello world perl script runs OK. I have added the directories in the README so that I can call the perl executable directly, which also works OK. When I run cpanm I get:
Can't load 'c:/perl/perl/lib/auto/Win32/Win32.xs.dll' for module Win32: load_file:The specified module could not be found at c:/perl/perl/lib/DynaLoader.pm
PATH is set to
c:\Windows\System32;c:\Windows;c:\perl\perl\bin;c:\perl\perl\site\bin;c:\perl\c\bin
Version is strawberry-perl-5.38.2.2-64bit-portable
If I try to use the cpan module directly I get a different error which I imagine has the same cause:
c:\perl>perl -MCPAN -e 'install Dancer;'
Attempt to reload Win32.pm aborted.
Compilation failed in require at c:/perl/perl/lib/Cwd.pm line 592.
Could someone please help?