-
Notifications
You must be signed in to change notification settings - Fork 49
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't load Win32.xs.dll when running cpanm #195
Comments
When I run Strawberry Perl, the following extra directories are included in my PATH: Maybe try adding them (or equivalent) to your path and see if that locates the missing dll. The usual way of opening up a shell with the correct path automatically set for you is to just double-click on |
Do other core dynamic modules load,eg:
Does Win32 load outside of cpanm:
|
No error when loading Devel::Peek. Same error when loading Win32 directly. |
I should add that the same error occurs when trying to load Win32 from the portableshell. |
What do |
|
Thank you. Sorry for the multiple questions! If I knew enough to have an immediate solution, I'd go straight to that. Does the
I have |
This makes me wonder if you've had a bad download, or a bad unpacking of the Strawberry Perl zip. What tool did you use to unpack it ? (I use 7z .) |
I can confirm that that DLL exists. I'll try a different version. |
strawberry-perl-5.32.1.1-64bit-portable works OK (has 64-bit and 32-bit editions) Some maybe something happened in the change to 64-bit only that broke it? The value of @inc doesn't change no matter which version; it only has the three entries shown in my previous comment. I have validated the SHA sums of all the downloads. I have extracted them multiple times using the unzip functionality built into Windows 11. |
Just a guess since I don't have Win11, is there some dll files which win11 doesn't have but old wins has? try install vc_redist to see if it help. |
you could also try using https://learn.microsoft.com/en-us/sysinternals/downloads/procmon to watch what the perl process is trying to access |
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:
Could someone please help?
The text was updated successfully, but these errors were encountered: