rschupp / PAR-Packer

(perl) Generate stand-alone executables, perl scripts and PAR files https://metacpan.org/pod/PAR::Packer
Other
48 stars 13 forks source link

1.048 not compiled on linux #15

Closed zdm closed 5 years ago

zdm commented 5 years ago
"/usr/perlbrew/perls/perl-5.28.2/bin/perl" -Mblib=.. run_with_inc.pl ./par -q -B -Oparldyn
Can't locate Digest/SHA.pm in @INC (you may need to install the Digest::SHA module) (@INC contains: /mnt/hgfs/projects/pcore-lib/pcore/lib /tmp/.cpanm/work/1556682277.52386/PAR-Packer-1.048/lib/site_perl/5.28.2/x86_64-linux-ld /tmp/.cpanm/work/1556682277.52386/PAR-Packer-1.048/lib/site_perl/5.28.2 /tmp/.cpanm/work/1556682277.52386/PAR-Packer-1.048/lib/5.28.2/x86_64-linux-ld /tmp/.cpanm/work/1556682277.52386/PAR-Packer-1.048/lib/5.28.2 .) at -e line 474.
system(./par -I../blib/arch -I../blib/lib -I/mnt/hgfs/projects/pcore-lib/pcore/lib -I/usr/perlbrew/perls/perl-5.28.2/lib/site_perl/5.28.2/x86_64-linux-ld -I/usr/perlbrew/perls/perl-5.28.2/lib/site_perl/5.28.2 -I/usr/perlbrew/perls/perl-5.28.2/lib/5.28.2/x86_64-linux-ld -I/usr/perlbrew/perls/perl-5.28.2/lib/5.28.2 -I. -q -B -Oparldyn) failed:
make[1]: *** [Makefile:908: parldyn] Error 2
make[1]: Leaving directory '/tmp/.cpanm/work/1556682277.52386/PAR-Packer-1.048/myldr'
make: *** [Makefile:542: subdirs] Error 2
FAIL
! Installing R/RS/RSCHUPP/PAR-Packer-1.048.tar.gz failed. See /tmp/.cpanm/work/1556682277.52386/build.log for details. Retry with --force to force install it.

Seems, that it removes perl locations from @INC.

rschupp commented 5 years ago

I can't reproduce that (and CPAN Testers can't either)

zdm commented 5 years ago

Hi, could you, please, do something or revert latest changes? It is simply not installed.

rschupp commented 5 years ago

There's almost no information in your issue to start diagnosing the problem.

zdm commented 5 years ago

hi, please, look at attached logs. 1.txt 2.txt

rschupp commented 5 years ago

Here's the problem:

config_args='-des -Dusemorebits -Duselargefiles -Dprefix=/usr/perlbrew/perls/perl-5.28.2 -Dusere locatableinc -Dman1dir=none -Dman3dir=none'

i.e. /usr/perlbrew/perls/perl-5.28.2 is a "relocatable" Perl interpreter: if it's installed into directory foo it's default @INC will be foo/../lib/5.28.2, foo/../lib/site_perl/5.28.2 etc That makes myldr/par a relocatable Perl interpreter, too (and you can recognize that from the @INC shown in the error message).

This has come up before with "portable" editions of Strawberry Perl. IIRC my conclusion then was that require Digest::SHA didn't work there, too, but previously that was hidden as it was inside `eval { ... }'. I'll do some experiments...

zdm commented 5 years ago

Thank you.

On 16.05.2019 14:45, Roderich Schupp wrote:

Here's the problem:

config_args='-des -Dusemorebits -Duselargefiles -Dprefix=/usr/perlbrew/perls/perl-5.28.2 -Dusere locatableinc -Dman1dir=none -Dman3dir=none'

i.e. |/usr/perlbrew/perls/perl-5.28.2| is a "relocatable" Perl interpreter: if it's installed into directory |foo| it's default |@INC| will be |../foo/lib/5.28.2|, |../lib/site_perl/5.28.2| etc That makes |myldr/par| a relocatable Perl interpreter, too (and you can recognize that from the |@INC| shown in the error message).

This has come up before with "portable" editions of Strawberry Perl http://strawberryperl.com/releases.html. IIRC my conclusion then was that |require Digest::SHA| didn't work there, too, but previously that was hidden as it was inside `eval { ... }'. I'll do some experiments...

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/rschupp/PAR-Packer/issues/15?email_source=notifications&email_token=AAH2MSEV6IIBYZH2IROHBKTPVVCMJA5CNFSM4HJRTVM2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODVRRS6Y#issuecomment-493033851, or mute the thread https://github.com/notifications/unsubscribe-auth/AAH2MSHFBSCA6A6ULEO6BDTPVVCMJANCNFSM4HJRTVMQ.

rschupp commented 5 years ago

Can you try current HEAD?

zdm commented 5 years ago

Current HEAD compiled without errors.

rschupp commented 5 years ago

Thx for testing