Giter Site home page Giter Site logo

Comments (12)

sisyphus avatar sisyphus commented on August 16, 2024

When I run Strawberry Perl, the following extra directories are included in my PATH:
C:\Windows\System32\Wbem;
C:\Windows\System32\WindowsPowerShell\v1.0;
C:\Windows\System32\OpenSSH;
C:\Users\Owner\AppData\Local\Microsoft\WindowsApps

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 portableshell.bat which you'll find in your C:\Perl directory.

from perl-dist-strawberry.

tonycoz avatar tonycoz commented on August 16, 2024

Do other core dynamic modules load,eg:

perl -MDevel::Peek -e0

Does Win32 load outside of cpanm:

perl -MWin32 -e0

from perl-dist-strawberry.

realflash avatar realflash commented on August 16, 2024

No error when loading Devel::Peek. Same error when loading Win32 directly.

from perl-dist-strawberry.

realflash avatar realflash commented on August 16, 2024

I should add that the same error occurs when trying to load Win32 from the portableshell.

from perl-dist-strawberry.

mohawk2 avatar mohawk2 commented on August 16, 2024

What do perl -MV=Win32 and perl -MV=Devel::Peek show? (You'll probably have to install V first)

from perl-dist-strawberry.

realflash avatar realflash commented on August 16, 2024
c:\perl>perl -MV=Win32
Win32
        C:\perl\perl\lib\Win32.pm: 0.59

c:\perl>perl -MV=Devel::Peek
Devel::Peek
        C:\perl\perl\lib\Devel\Peek.pm: 1.33

from perl-dist-strawberry.

mohawk2 avatar mohawk2 commented on August 16, 2024

Thank you. Sorry for the multiple questions! If I knew enough to have an immediate solution, I'd go straight to that. Does the @INC part of perl -V look like this?

  @INC:
    C:/perl/perl/site/lib/MSWin32-x64-multi-thread
    C:/perl/perl/site/lib
    C:/perl/perl/vendor/lib
    C:/perl/perl/lib

I have C:\perl\perl\lib\auto\Win32\Win32.xs.dll, do you? Also, I'm using 5.32.1.1, do you get the same problem with other versions of Strawberry? Have you tried the very latest?

from perl-dist-strawberry.

sisyphus avatar sisyphus commented on August 16, 2024

I should add that the same error occurs when trying to load Win32 from the portableshell.

This makes me wonder if you've had a bad download, or a bad unpacking of the Strawberry Perl zip.
Does the SHA256 digest of your downloaded strawberry-perl-5.38.2.2-64bit-portable.zip match that shown at https://strawberryperl.com/releases.html (ea451686065d6338d7e4d4a04c9af49f17951d15aa4c2e19ab8cb56fa2373440) ?

What tool did you use to unpack it ? (I use 7z .)
Going back quite a few years, it was not uncommon for some unzip tools to botch the unpacking - depending upon how they were configured. (Winzip was one such tool - but I don't know if that tool even exists any more.)
If the unpacking of the zip package issued warnings/errors, then your Strawberry Perl installation is probably broken.

from perl-dist-strawberry.

realflash avatar realflash commented on August 16, 2024
c:\perl>perl -e "print \"@INC\""
c:/perl/perl/site/lib
c:/perl/perl/vendor/lib
c:/perl/perl/lib

I can confirm that that DLL exists. I'll try a different version.

from perl-dist-strawberry.

realflash avatar realflash commented on August 16, 2024

strawberry-perl-5.32.1.1-64bit-portable works OK (has 64-bit and 32-bit editions)
strawberry-perl-5.36.3.1-64bit-portable fails as in my first post (only has 64-bit edition)
strawberry-perl-5.38.2.2-64bit-portable fails as in my first post (only has 64-bit edition)

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.

from perl-dist-strawberry.

xiaoyafeng avatar xiaoyafeng commented on August 16, 2024

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.

from perl-dist-strawberry.

wchristian avatar wchristian commented on August 16, 2024

you could also try using https://learn.microsoft.com/en-us/sysinternals/downloads/procmon to watch what the perl process is trying to access

from perl-dist-strawberry.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.