in reply to Perl 5.38 64 bit cpanm fails

Firstly, all of those libraries that can't be found (ie libmoldname.a, libkernel32.a, libuser32.a, etc.) should be located in your strawberry\c\x86_64-w64-mingw32\lib directory.
Please check that they are there.

Secondly, that directory should be specified (along with some others) in $Config{libpth}.
This is most easily checked by examining the output of perl -V:libpth

Could you also provide the output of running perl -V

Cheers,
Rob

Replies are listed 'Best First'.
Re^2: Perl 5.38 64 bit cpanm fails
by phew47 (Novice) on Jul 03, 2024 at 10:34 UTC

    I suspect my Perl install is confused somehow. I installed the portable version in a non-standard place of T:\hyd\src\strawberry.5.38 under the understanding that I coud install Perl anywhere these days - I know it used to be c:\strawberry or nothing!

    Perl -Vlibpath
    shows
    libpth='T:\hyd\src\strawberry.5.38\c\lib T:\hyd\src\strawberry.5.38\c\ +x86_64-w64-mingw32\lib T:\hyd\src\strawberry.5.38\c\lib\gcc\x86_64-w6 +4- mingw32\13.1.0';

    Everything looks good there. It's worth noting that T: drive is a share of \\k030\hydprime\cnd and the error I get on a build are something like

    //k030/HydPrime/cnd/hyd/src/strawberry.5.38/c/bin/../lib/gcc/x86_64-w64-mingw32/13.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lmoldname: No such file or directory

    The files are there when I look down the T: tree. However note the forward slashes on the error message - very Unix and not at all Windows-like. I don't really understand why the T: turns into //k030/HydPrime/cnd. I suspect that's the real problem! I'll try installing at c:\strawberry and see if the issues go away!

      I installed the portable version in a non-standard place of T:\hyd\src\strawberry.5.38 under the understanding that I could install Perl anywhere these days

      Yes - that's usually not a problem.
      I suspect that the main problem is that the "T:drive is a share of \\k030\hydprime\cnd".
      I've no experience of that hoop, nor of how to jump through it ;-)

      Cheers,
      Rob