in reply to Re^15: Download Links for Dmake and MinGW
in thread Download Links for Dmake and MinGW

I was trying to install PAR:Packer after installing dmake and MinGW by ppm. Not sure other modules depend on dmake and MinGW? Haven't successfully installed a single module which depends on dmake and Mingw.

Perl makefile.pl Warning: prerequisite Getopt::ArgvFile 1.07 not found. Warning: prerequisite Module::ScanDeps 1.21 not found. Warning: prerequisite PAR 1.014 not found. Warning: prerequisite PAR::Dist 0.22 not found. Warning: prerequisite Win32::Exe 0.17 not found. Warning (mostly harmless): No library found for -lmoldname Warning (mostly harmless): No library found for -lkernel32 Warning (mostly harmless): No library found for -luser32 Warning (mostly harmless): No library found for -lgdi32 Warning (mostly harmless): No library found for -lwinspool Warning (mostly harmless): No library found for -lcomdlg32 Warning (mostly harmless): No library found for -ladvapi32 Warning (mostly harmless): No library found for -lshell32 Warning (mostly harmless): No library found for -lole32 Warning (mostly harmless): No library found for -loleaut32 Warning (mostly harmless): No library found for -lnetapi32 Warning (mostly harmless): No library found for -luuid Warning (mostly harmless): No library found for -lws2_32 Warning (mostly harmless): No library found for -lmpr Warning (mostly harmless): No library found for -lwinmm Warning (mostly harmless): No library found for -lversion Warning (mostly harmless): No library found for -lodbc32 Warning (mostly harmless): No library found for -lodbccp32 Warning (mostly harmless): No library found for -lcomctl32 Generating a dmake-style Makefile Writing Makefile for PAR::Packer Writing MYMETA.yml and MYMETA.json C:\TEMP\PAR-Packer-1.037>dmake Skip blib\lib\PAR\Filter.pm (unchanged) Skip blib\lib\App\Packer\PAR.pm (unchanged) Skip blib\lib\PAR\Packer.pm (unchanged) Skip blib\lib\PAR\Filter\Bleach.pm (unchanged) Skip blib\lib\PAR\Filter\PodStrip.pm (unchanged) Skip blib\lib\PAR\Filter\Bytecode.pm (unchanged) Skip blib\lib\PAR\Filter\Obfuscate.pm (unchanged) Skip blib\lib\pp.pm (unchanged) Skip blib\lib\PAR\Filter\PatchContent.pm (unchanged) Skip blib\lib\PAR\StrippedPARL\Base.pm (unchanged) C:\Perl64\site\bin\gcc.exe -c -s -O2 -DWIN32 -DWIN64 -DCONSERVATIVE -D +PERL_TEXTM ODE_SCRIPTS -DUSE_SITECUSTOMIZE -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICI +T_SYS -fwr apv -fno-strict-aliasing -mms-bitfields -I"C:\Perl64\lib\CORE" -DLDL +IBPTHNAME= \"\" -DPARL_EXE=\"parl.exe\" -DPAR_PACKER_VERSION=\"1.037\" -s -O2 mai +n.c C:\Perl64\site\bin\g++.exe main.o ppresource.coff -s -s -static-libg +cc -static -libstdc++ -L"C:\Perl64\lib\CORE" -L"C:\MinGW\x86_64-w64-mingw32\lib" + "C:\Perl6 4\lib\CORE\libperl524.a" -o par.exe rem "C:\Perl64\bin\perl.exe" encode_append.pl Dynamic.in par.exe Dynamic.p +m "C:\Perl64\bin\perl.exe" embed_files.pl -c 32768 par.exe "C:\Perl64\bi +n\perl524. dll" "C:\MinGW\bin\libgcc_s_sjlj-1.dll" "C:\MinGW\bin\libstdc++-6.dll" + > boot_em bedded_files.c # using "objdump" recusrively to find DLLs needed by par.exe # embedding "par.exe" as "par.exe" # embedding "C:\Perl64\bin/perl524.dll" as "perl524.dll" C:\Perl64\site\bin\gcc.exe -c -s -O2 -DWIN32 -DWIN64 -DCONSERVATIVE -D +PERL_TEXTM ODE_SCRIPTS -DUSE_SITECUSTOMIZE -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICI +T_SYS -fwr apv -fno-strict-aliasing -mms-bitfields -I"C:\Perl64\lib\CORE" -DLDL +IBPTHNAME= \"\" -DPARL_EXE=\"parl.exe\" -DPAR_PACKER_VERSION=\"1.037\" -s -O2 boo +t.c In file included from mktmpdir.h:87:0, from mktmpdir.c:1, from boot.c:10: sha1.c: In function 'sha_transform': sha1.c:146:2: warning: right shift count >= width of type [enabled by +default] C:\Perl64\site\bin\g++.exe boot.o -static-libgcc -s -s -static-libg +cc -static -libstdc++ -L"C:\Perl64\lib\CORE" -L"C:\MinGW\x86_64-w64-mingw32\lib" + "C:\Perl6 4\lib\CORE\libperl524.a" ppresource.coff -o boot.exe rem "C:\Perl64\bin\perl.exe" encode_append.pl Static.in boot.exe Static.pm cp Dynamic.pm ..\blib\lib\PAR\StrippedPARL\Dynamic.pm cp Static.pm ..\blib\lib\PAR\StrippedPARL\Static.pm "C:\Perl64\bin\perl.exe" -Mblib=.. run_with_inc.pl boot.exe -q -B -Opa +rl.exe Can't locate PAR/Heavy.pm in @INC (you may need to install the PAR::He +avy module ) (@INC contains: ..\blib\arch ..\blib\lib C:/Perl64/site/lib C:/Perl6 +4/lib . .) at -e line 268, <_FH> chunk 1. system(boot.exe -I..\blib\arch -I..\blib\lib -IC:/Perl64/site/lib -IC: +/Perl64/li b -I. -q -B -Oparl.exe) failed: dmake.exe: Error code 130, while making 'parl.exe' dmake.exe: 'parl.exe' removed. dmake.exe: Error code 255, while making 'subdirs'

thoughts: Not sure it is related to installation of Mingw and dmake through ppm before installing PAR::Packer by perl Makefile.pl, dmake... (not through ppm)?

Thanks Ying

Replies are listed 'Best First'.
Re^17: Download Links for Dmake and MinGW
by syphilis (Archbishop) on Aug 12, 2017 at 02:04 UTC
    Warning: prerequisite Getopt::ArgvFile 1.07 not found. Warning: prerequisite Module::ScanDeps 1.21 not found. Warning: prerequisite PAR 1.014 not found. Warning: prerequisite PAR::Dist 0.22 not found. Warning: prerequisite Win32::Exe 0.17 not found.
    You'll need to first install those modules (and any prerequisites that they list).
    You'll see that one of those modules listed is PAR, and it's the module that contains PAR/Heavy.pm.

    The simplest way of getting it done is to use the cpan utility (cpan.bat):
    cpan -i PAR::Packer
    But that won't work if you don't have an internet connection. It is possible to configure cpan to install from sources stored on the local machine - but I've no experience with that.
    You'd need to check the cpan documentation - see perldoc cpan
    This excerpt from that documentation looks promising:
    # with just the dot, install from the distribution in the # current directory cpan .
    That is (I think), put all of the source distributions (tar.gz files from CPAN) into the same folder on your local machine, cd to that directory and run:
    cpan . -i Par::Packer
    If you have trouble getting that working, ask about it in a new thread.
    Or you can install Par::Packer and its dependency chain in the way you're doing it - it's a bit tedious, but it can be done that way if you want.

    Cheers,
    Rob

      Hi Rob, Thanks for your advice. I was able to install PAR::Packer using the tedious way (perl makefile.pl, dmake...) Still looking into your cpan -i option. Will let you know whether that way works too. Sorry for late response. Thanks Ying

Re^17: Download Links for Dmake and MinGW
by marto (Cardinal) on Aug 12, 2017 at 11:47 UTC

    We've been round this loop a few times, if you're working without internet access use minicpan to create a local mirror, copy it to your network/server, configure cpan accordingly o conf urllist push file:///path/to/your/minicpan and install. You've been given a lot of advice that would have saved you a lot of time.

      Thanks Marto for the suggestion. I will also take a look at the minicpan you suggested. I like Perl a lot, very flexible and gave me options to speed up the process. Thanks Ying