Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re^3: enc2xs not found! at Makefile.PL

by syphilis (Archbishop)
on Nov 25, 2019 at 03:54 UTC ( [id://11109167]=note: print w/replies, xml ) Need Help??


in reply to Re^2: enc2xs not found! at Makefile.PL
in thread enc2xs not found! at Makefile.PL

When I saw:
Failed to opendir 'D:\STRAWB~1\perl\lib\CORE' to find header files: No + such file or directory at D:/Strawberry/perl/lib/ExtUtils/MM_Any.pm +line 3049.
I should have asked you if the directory D:\STRAWB~1\perl\lib\CORE (also known as D:\strawberry\perl\lib\CORE) exists.

I assumed it existed because it ought to exist, but maybe it has been removed.
Does that directory exist ?
If it does exist, then why does the opendir() call fail ?

Line 3049 of MM_Any.pm is:
opendir my $dh, $header_dir or die "Failed to opendir '$header_dir' to + find header files: $!";
Yet on my Strawberry Perl 5.30.0, it all works fine:
C:\>perl -le "opendir my $dh, 'C:\strawberry\perl\lib\CORE' or die $!; +" C:\>perl -le "opendir my $dh, 'C:\strawb~1\perl\lib\CORE' or die $!;" C:\>perl -le "opendir my $dh, 'C:\STRAWB~1\perl\lib\CORE' or die $!;" C:\>
Cheers,
Rob

Replies are listed 'Best First'.
Re^4: enc2xs not found! at Makefile.PL
by levW (Beadle) on Nov 25, 2019 at 06:46 UTC

    Thanks, Perl was OK after I have reinstalled my Strawberry from scratch... However - the workaround still fails, now in a later stage.

    D:\perl64\cpan\sources\modules\encode-3.01\Encode-3.01>gmake install gmake[1]: Entering directory 'D:/perl64/cpan/sources/modules/encode-3. +01/Encode-3.01/Byte' "D:\Strawberry\perl\bin\perl.exe" -MExtUtils::Command::MM -e cp_nonemp +ty -- Byte.bs ..\blib\arch\auto\Encode\Byte\Byte.bs 644 gmake[1]: Leaving directory 'D:/perl64/cpan/sources/modules/encode-3.0 +1/Encode-3.01/Byte' gmake[1]: Entering directory 'D:/perl64/cpan/sources/modules/encode-3. +01/Encode-3.01/CN' "D:\Strawberry\perl\bin\perl.exe" -MExtUtils::Command::MM -e cp_nonemp +ty -- CN.bs ..\blib\arch\auto\Encode\CN\CN.bs 644 gmake[1]: Leaving directory 'D:/perl64/cpan/sources/modules/encode-3.0 +1/Encode-3.01/CN' gmake[1]: Entering directory 'D:/perl64/cpan/sources/modules/encode-3. +01/Encode-3.01/EBCDIC' "D:\Strawberry\perl\bin\perl.exe" -MExtUtils::Command::MM -e cp_nonemp +ty -- EBCDIC.bs ..\blib\arch\auto\Encode\EBCDIC\EBCDIC.bs 644 gmake[1]: Leaving directory 'D:/perl64/cpan/sources/modules/encode-3.0 +1/Encode-3.01/EBCDIC' gmake[1]: Entering directory 'D:/perl64/cpan/sources/modules/encode-3. +01/Encode-3.01/JP' "D:\Strawberry\perl\bin\perl.exe" -MExtUtils::Command::MM -e cp_nonemp +ty -- JP.bs ..\blib\arch\auto\Encode\JP\JP.bs 644 gmake[1]: Leaving directory 'D:/perl64/cpan/sources/modules/encode-3.0 +1/Encode-3.01/JP' gmake[1]: Entering directory 'D:/perl64/cpan/sources/modules/encode-3. +01/Encode-3.01/KR' "D:\Strawberry\perl\bin\perl.exe" -MExtUtils::Command::MM -e cp_nonemp +ty -- KR.bs ..\blib\arch\auto\Encode\KR\KR.bs 644 gmake[1]: Leaving directory 'D:/perl64/cpan/sources/modules/encode-3.0 +1/Encode-3.01/KR' gmake[1]: Entering directory 'D:/perl64/cpan/sources/modules/encode-3. +01/Encode-3.01/Symbol' "D:\Strawberry\perl\bin\perl.exe" -MExtUtils::Command::MM -e cp_nonemp +ty -- Symbol.bs ..\blib\arch\auto\Encode\Symbol\Symbol.bs 644 gmake[1]: Leaving directory 'D:/perl64/cpan/sources/modules/encode-3.0 +1/Encode-3.01/Symbol' gmake[1]: Entering directory 'D:/perl64/cpan/sources/modules/encode-3. +01/Encode-3.01/TW' "D:\Strawberry\perl\bin\perl.exe" -MExtUtils::Command::MM -e cp_nonemp +ty -- TW.bs ..\blib\arch\auto\Encode\TW\TW.bs 644 gmake[1]: Leaving directory 'D:/perl64/cpan/sources/modules/encode-3.0 +1/Encode-3.01/TW' gmake[1]: Entering directory 'D:/perl64/cpan/sources/modules/encode-3. +01/Encode-3.01/Unicode' "D:\Strawberry\perl\bin\perl.exe" -MExtUtils::Command::MM -e cp_nonemp +ty -- Unicode.bs ..\blib\arch\auto\Encode\Unicode\Unicode.bs 644 g++ Unicode.def -o ..\blib\arch\auto\Encode\Unicode\Unicode.xs.dll -md +ll -s -L"D:\Strawberry\perl\lib\CORE" -L"D:\Strawberry\c\lib" Unicode +.o "D:\Strawberry\perl\lib\CORE\libperl530.a" -lmoldname -lkernel32 + -luser32 -lgdi32 -lwinspool -lcomdlg32 -ladvapi32 -lshell32 -lole32 +-loleaut32 -lnetapi32 -luuid -lws2_32 -lmpr -lwinmm -lversion -lodbc3 +2 -lodbccp32 -lcomctl32 -Wl,--enable-auto-image-base g++: error: Unicode.o: No such file or directory gmake[1]: *** [Makefile:454: ..\blib\arch\auto\Encode\Unicode\Unicode. +xs.dll] Error 1 gmake[1]: Leaving directory 'D:/perl64/cpan/sources/modules/encode-3.0 +1/Encode-3.01/Unicode' gmake: *** [Makefile:604: subdirs] Error 2
      g++: error: Unicode.o: No such file or directory

      I don't know how that error arises.
      Encode-3.01 builds and tests fine for me on both 32-bit and 64-bit Strawberry Perl 5.30.0.
      Also, you should already have Encode-3.01 installed (in perl\vendor\lib), and there is no point installing something you already have:
      C:\>perl -MEncode -le "print $Encode::VERSION;" 3.01
      Cheers,
      Rob

        Correct - looks installed. However, back to my original issue when trying to install Parse::AFP :

        D:\perl64\cpan\sources\modules\encode-3.01\Encode-3.01>cpan install Pa +rse::AFP Loading internal logger. Log::Log4perl recommended for better logging CPAN: CPAN::SQLite loaded ok (v0.217) Database was generated on Sun, 24 Nov 2019 12:31:42 GMT Running install for module 'Parse::AFP' CPAN: Digest::SHA loaded ok (v6.02) CPAN: Compress::Zlib loaded ok (v2.086) Checksum for D:\Strawberry\cpan\sources\authors\id\A\AU\AUDREYT\Parse- +AFP-0.25.tar.gz ok CPAN: Archive::Tar loaded ok (v2.32) CPAN: YAML::XS loaded ok (v0.78) CPAN: CPAN::Meta::Requirements loaded ok (v2.140) CPAN: Parse::CPAN::Meta loaded ok (v2.150010) CPAN: CPAN::Meta loaded ok (v2.150010) CPAN: Module::CoreList loaded ok (v5.20190522) Configuring A/AU/AUDREYT/Parse-AFP-0.25.tar.gz with Makefile.PL Cannot determine perl version info from lib/Parse/AFP.pm Checking if your kit is complete... Looks good Warning: prerequisite Encode::IBM 0.01 not found. Generating a gmake-style Makefile Writing Makefile for Parse::AFP Invalid LICENSE value 'cc0' ignored Writing MYMETA.yml and MYMETA.json AUDREYT/Parse-AFP-0.25.tar.gz D:\Strawberry\perl\bin\perl.exe Makefile.PL -- OK Running make for A/AU/AUDREYT/Parse-AFP-0.25.tar.gz ---- Unsatisfied dependencies detected during ---- ---- AUDREYT/Parse-AFP-0.25.tar.gz ---- Encode::IBM [requires] Running install for module 'Encode::IBM' Checksum for D:\Strawberry\cpan\sources\authors\id\A\AU\AUDREYT\Encode +-IBM-0.11.tar.gz ok Configuring A/AU/AUDREYT/Encode-IBM-0.11.tar.gz with Makefile.PL enc2xs not found! at Makefile.PL line 28. Warning: No success on command[D:\Strawberry\perl\bin\perl.exe Makefil +e.PL] AUDREYT/Encode-IBM-0.11.tar.gz D:\Strawberry\perl\bin\perl.exe Makefile.PL -- NOT OK Stopping: 'install' failed for 'Encode::IBM'. D:\perl64\cpan\sources\modules\encode-3.01\Encode-3.01>

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11109167]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (1)
As of 2024-04-25 19:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found