Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

Venerable monks

Probably I am just a bit confused, but I am having problems in setting up Cava Packager. I can not find a single Perl distribution that is accepted by this packager. I am on macOS running all sort of Perl through Perlbrew. I tried 5.16.3 (according to Cava Packager website 5.16 is supported) but I am getting the following message when I try to pint to Cava Packager to dis distribution:

2018-02-25 12:06:41 : Error : Only a Perl with threads is supported on + this platform. 2018-02-25 12:06:41 : Error : The selected Perl at /Users/at/perl5/per +lbrew/perls/perl-5.16.3/bin/perl cannot be used to create Cava Packag +er binaries. 2018-02-25 12:06:41 : Error : Only a Perl with threads is supported on + this platform. 2018-02-25 12:06:41 : Error : The selected Perl cannot be used to buil +d Cava Packager binaries

I installed the latest CitrusPerl which is 5.24.1. This doesn't work too (which is strange to me: should both be compatible being the same project? An older version of CitrusPerl seems not to be available anymore (at least I haven't found it). Does it means I should give up trying CavaPackager?

.

Replies are listed 'Best First'.
Re: CavaPackager macOS no Perl distribution
by karlgoethebier (Abbot) on Feb 25, 2018 at 12:25 UTC
    "...Only a Perl with threads is supported on + this platform... I am on macOS running all sort of Perl through Perlbrew"

    I guess you need to build your Perl with threads. See Re: Simultaneously reading from a file and serving data how to do this with perlbrew.

    Best regards, Karl

    «The Crux of the Biscuit is the Apostrophe»

    perl -MCrypt::CBC -E 'say Crypt::CBC->new(-key=>'kgb',-cipher=>"Blowfish")->decrypt_hex($ENV{KARL});'Help

Re: CavaPackager macOS no Perl distribution
by dasgar (Priest) on Feb 26, 2018 at 18:54 UTC
    Does it means I should give up trying CavaPackager?

    I think that the answer to that depends on what version and distribution of Perl you want to use.

    For whatever reason, it looks like development on Cava Packager stopped and the latest Perl version that it supports is 5.16. So if you want to use a newer version of Perl (and/or if the module versions that you want to use require a newer version of Perl), you might not be able to get Cava Packager to work. And although the developers recommend using Citrus Perl, they do note that "other builds and distributions of Perl may also work". So if you use a build/distribution of Perl that is not compatible with Cava Packager, you might not be able to get it to work.

    If you're looking for a free alternative to Cava Packager, you could look into the pp utility from PAR::Packer. And in case you ever needed to bundle Perl code into an executable on Windows, salva has released Win32::Packer. I haven't tried Win32::Packer yet, but I've been wanting to.

    Of course there are other utilities that you could purchase to bundle your Perl code into an executable. I won't name any here, but you could easily search for those if you really wanted/needed to go that route.

Re: CavaPackager macOS no Perl distribution
by Anonymous Monk on Feb 25, 2018 at 19:41 UTC
Re: CavaPackager macOS no Perl distribution
by Anonymous Monk on Feb 26, 2018 at 22:47 UTC

      It is a bit old the post, but I wanted to have a look at this combo, and all the CitrusPerl listed here I tried were not accepted by Cavapackager...

        Why?