in reply to Re^2: no modules unziped from par archive
in thread no modules unziped from par archive

It would be wise to read and understand pp, PAR::FAQ and PAR::Tutorial. If you still have problems, if possible post the code in question.

  • Comment on Re^3: no modules unziped from par archive

Replies are listed 'Best First'.
Re^4: no modules unziped from par archive
by une04 (Initiate) on Jul 23, 2012 at 09:33 UTC
    Yep, I read pp documentation and the question which came up to me was If I run the executable in the temp directory appears a bunch of files like d9ab2eb9.pm c2b1a7cf.so c1ddbf20.pl. c1ddbf20.pl is my script, it seems to me that .so and .pm files are required by executable to run the script. I wonder how can i extract all of these files without running the executable.

      Well, if you've read the pp docs and the advice given to date you're creating the executable with pp with the -x option right? To date none of your posts show you actually doing this.

      "I wonder how can i extract all of these files without running the executable."

      Really? It tells you this in the documentation. Again, have you actually packed your script and it's dependencies?

      Creating an exe based on my example from Re: PP: Executables still need require files.....:

      unzip the exe to a temporary directory:

      Copy the exe to a computer which does not have perl installed, and it works as expected (in Re: PP: Executables still need require files.....).

      I see no point in posting further until you provide a repeatable example of your code, how you're packaging it and what the actual output is. I doubt that you're taking the advice given on the -x option.

      Update: broke the post size limit, removed some output.

        Marto, thanks for your help, but here you go:
        # cat test.pl #!/usr/bin/perl -w print "1.TEST PRINT\n"; $num_args = $#ARGV + 1; if ($num_args == 1) { if ('123' eq $ARGV[0]) { print "2. EQUEL\n"; } } else { print "2.NOT EQUEL\n"; }
        ]# pp -o test -c -x test.pl -v /usr/local/bin/pp: Packing test.pl /tmp/tuHXoUo56p syntax OK /usr/local/bin/pp: Generating a fresh 'parl'. /usr/local/bin/pp: Running /tmp/parlwsGIGpI -B -Otest /tmp/ppXCvh8.par Packing "Config.pm"... Written as "Config.pm" Packing "Config_git.pl"... Written as "Config_git.pl" Packing "Config_heavy.pl"... Written as "Config_heavy.pl" Packing "Cwd.pm"... Written as "Cwd.pm" Packing "DynaLoader.pm"... Written as "DynaLoader.pm" Packing "Errno.pm"... Written as "Errno.pm" Packing "Fcntl.pm"... Written as "Fcntl.pm" Packing "File/Glob.pm"... Written as "File/Glob.pm" Packing "IO.pm"... Written as "IO.pm" Packing "IO/File.pm"... Written as "IO/File.pm" Packing "IO/Handle.pm"... Written as "IO/Handle.pm" Packing "IO/Seekable.pm"... Written as "IO/Seekable.pm" Packing "List/Util.pm"... Written as "List/Util.pm" Packing "PerlIO/scalar.pm"... Written as "PerlIO/scalar.pm" Packing "Scalar/Util.pm"... Written as "Scalar/Util.pm" Packing "XSLoader.pm"... Written as "XSLoader.pm" Packing "auto/DynaLoader/dl_findfile.al"... Written as "auto/DynaLoader/dl_findfile.al" Packing "lib.pm"... Written as "lib.pm" Packing "re.pm"... Written as "re.pm" Packing "Compress/Raw/Zlib.pm"... Written as "Compress/Raw/Zlib.pm" Packing "auto/Compress/Raw/Zlib/autosplit.ix"... Written as "auto/Compress/Raw/Zlib/autosplit.ix" Packing "Archive/Zip.pm"... Written as "Archive/Zip.pm" Packing "Archive/Zip/Archive.pm"... Written as "Archive/Zip/Archive.pm" Packing "Archive/Zip/DirectoryMember.pm"... Written as "Archive/Zip/DirectoryMember.pm" Packing "Archive/Zip/FileMember.pm"... Written as "Archive/Zip/FileMember.pm" Packing "Archive/Zip/Member.pm"... Written as "Archive/Zip/Member.pm" Packing "Archive/Zip/NewFileMember.pm"... Written as "Archive/Zip/NewFileMember.pm" Packing "Archive/Zip/StringMember.pm"... Written as "Archive/Zip/StringMember.pm" Packing "Archive/Zip/ZipFileMember.pm"... Written as "Archive/Zip/ZipFileMember.pm" Packing "Compress/Zlib.pm"... Written as "Compress/Zlib.pm" Packing "File/GlobMapper.pm"... Written as "File/GlobMapper.pm" Packing "IO/Compress/Adapter/Deflate.pm"... Written as "IO/Compress/Adapter/Deflate.pm" Packing "IO/Compress/Base.pm"... Written as "IO/Compress/Base.pm" Packing "IO/Compress/Base/Common.pm"... Written as "IO/Compress/Base/Common.pm" Packing "IO/Compress/Gzip.pm"... Written as "IO/Compress/Gzip.pm" Packing "IO/Compress/Gzip/Constants.pm"... Written as "IO/Compress/Gzip/Constants.pm" Packing "IO/Compress/RawDeflate.pm"... Written as "IO/Compress/RawDeflate.pm" Packing "IO/Compress/Zlib/Extra.pm"... Written as "IO/Compress/Zlib/Extra.pm" Packing "IO/Uncompress/Adapter/Inflate.pm"... Written as "IO/Uncompress/Adapter/Inflate.pm" Packing "IO/Uncompress/Base.pm"... Written as "IO/Uncompress/Base.pm" Packing "IO/Uncompress/Gunzip.pm"... Written as "IO/Uncompress/Gunzip.pm" Packing "IO/Uncompress/RawInflate.pm"... Written as "IO/Uncompress/RawInflate.pm" Packing "PAR.pm"... Written as "PAR.pm" Packing "PAR/Filter.pm"... Written as "PAR/Filter.pm" Packing "PAR/Filter/PatchContent.pm"... Written as "PAR/Filter/PatchContent.pm" Packing "PAR/Filter/PodStrip.pm"... Written as "PAR/Filter/PodStrip.pm" Packing "PAR/Heavy.pm"... Written as "PAR/Heavy.pm" Packing "PAR/SetupProgname.pm"... Written as "PAR/SetupProgname.pm" Packing "PAR/SetupTemp.pm"... Written as "PAR/SetupTemp.pm" Packing "AutoLoader.pm"... Written as "AutoLoader.pm" Packing "Carp.pm"... Written as "Carp.pm" Packing "Carp/Heavy.pm"... Written as "Carp/Heavy.pm" Packing "Exporter.pm"... Written as "Exporter.pm" Packing "Exporter/Heavy.pm"... Written as "Exporter/Heavy.pm" Packing "File/Basename.pm"... Written as "File/Basename.pm" Packing "File/Copy.pm"... Written as "File/Copy.pm" Packing "File/Find.pm"... Written as "File/Find.pm" Packing "File/Path.pm"... Written as "File/Path.pm" Packing "File/Spec.pm"... Written as "File/Spec.pm" Packing "File/Spec/Unix.pm"... Written as "File/Spec/Unix.pm" Packing "File/Temp.pm"... Written as "File/Temp.pm" Packing "FileHandle.pm"... Written as "FileHandle.pm" Packing "PAR/Dist.pm"... Written as "PAR/Dist.pm" Packing "PerlIO.pm"... Written as "PerlIO.pm" Packing "SelectSaver.pm"... Written as "SelectSaver.pm" Packing "Symbol.pm"... Written as "Symbol.pm" Packing "Tie/Hash/NamedCapture.pm"... Written as "Tie/Hash/NamedCapture.pm" Packing "Time/Local.pm"... Written as "Time/Local.pm" Packing "UNIVERSAL.pm"... Written as "UNIVERSAL.pm" Packing "attributes.pm"... Written as "attributes.pm" Packing "base.pm"... Written as "base.pm" Packing "bytes.pm"... Written as "bytes.pm" Packing "constant.pm"... Written as "constant.pm" Packing "integer.pm"... Written as "integer.pm" Packing "overload.pm"... Written as "overload.pm" Packing "strict.pm"... Written as "strict.pm" Packing "utf8.pm"... Written as "utf8.pm" Packing "vars.pm"... Written as "vars.pm" Packing "warnings.pm"... Written as "warnings.pm" Packing "warnings/register.pm"... Written as "warnings/register.pm" Packing "/tmp/par-726f6f74/cache-0658de967295ddc35810e9cb5745d3c02d44f +4ee/0ae15695.so"... Written as "auto/List/Util/Util.so" Packing "/tmp/par-726f6f74/cache-0658de967295ddc35810e9cb5745d3c02d44f +4ee/51ee12a1.so"... Written as "auto/IO/IO.so" Packing "/tmp/par-726f6f74/cache-0658de967295ddc35810e9cb5745d3c02d44f +4ee/5387c047.so"... Written as "auto/Compress/Raw/Zlib/Zlib.so" Packing "/tmp/par-726f6f74/cache-0658de967295ddc35810e9cb5745d3c02d44f +4ee/70f078ff.so"... Written as "auto/PerlIO/scalar/scalar.so" Packing "/tmp/par-726f6f74/cache-0658de967295ddc35810e9cb5745d3c02d44f +4ee/bd1be12d.so"... Written as "auto/File/Glob/Glob.so" Packing "/tmp/par-726f6f74/cache-0658de967295ddc35810e9cb5745d3c02d44f +4ee/c2b1a7cf.so"... Written as "auto/Fcntl/Fcntl.so" Packing "/tmp/par-726f6f74/cache-0658de967295ddc35810e9cb5745d3c02d44f +4ee/c366adf6.so"... Written as "auto/Cwd/Cwd.so"
        # unzip test Archive: test creating: script/ inflating: MANIFEST inflating: META.yml inflating: script/main.pl inflating: script/test.pl
        so, there is no *.so or *.pm files listed when were packaging...