![]() |
|
Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
APPerl: "osname=cosmo" problemby kcott (Archbishop) |
on Jun 08, 2023 at 05:18 UTC ( #11152689=perlquestion: print w/replies, xml ) | Need Help?? |
kcott has asked for the wisdom of the Perl Monks concerning the following question: Background I don't know how much of this is useful. I've kept it very brief. Ask for more details if you need them.
Problem From "Perl::Dist::APPerl - USAGE": "APPerl doesn't need to be installed, the output perl.com binary can be copied between computers and ran without installation." This generally seemed to be the case. I ran various checks (on all platforms): 'use v5.36;' enables the strict and warnings pragmata, and features are enabled or disabled in line with :5.36 bundle; an arbitrary selection of core modules had correct versions. However, $^O reported cosmo (presumably short for Cosmopolitan Libc) on all platforms. This will cause problems with modules which provide different functionality based on $^O. File::Spec gave good examples of this. Linux:
Win10:
Cygwin:
In all of those cases, you really want the perl.com -E ... output to match the perl -E ... output; but all defaulted to File::Spec::Unix. "Perl::Dist::APPerl - USAGE" goes on to say: "However, in certain cases such as magic (modifying $0, etc.) The binary must be assimilated for it to work properly. ... cp perl.com perl ./perl --assimilate" In case that was needed, I tried:
I haven't worked with APPerl previously; there's a lot of documentation; it's entirely possible that I've missed a step; misread an instruction; or made some other mistake. I've been over what I've done a number of times but I can't see where I might have gone wrong. It could, of course, be bugs or shortcomings in APPerl itself. If anyone can shed any light on this it would be greatly appreciated. Thankyou. — Ken
Back to
Seekers of Perl Wisdom
|
|