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

I come humbly once again to beseech thee (plural) with a request for wisdom.

Asking for a friend, as always...

How does one distribute a Perl application on a MacOS where Xcode is not an option, and thus it's not an option to install modules that require a regular build (C compiler, make, etc)? Safely assume (thankfully) this is a non-GUI application. This also means perlbrew is out .. unless there are ways to get these traditional *nix build tools on MacOS without invoking the heavy (GBs) penalty of the Xcode elephant? Thank you in advance for any thoughtful replies.

  • Comment on What's the "State Of the Art" way to distribute cli "Apps" on MacOS sans Xcode?
  • Download Code

Replies are listed 'Best First'.
Re: What's the "State Of the Art" way to distribute cli "Apps" on MacOS sans Xcode?
by Anonymous Monk on Feb 03, 2022 at 07:55 UTC
    unless there are ways to get these traditional *nix build tools on MacOS without invoking the heavy (GBs) penalty of the Xcode elephant
    There's "Xcode command-line tools" (including a compiler, Git and some other stuff; approximately 1.2GB, according to some sources on the Internet). I think you can use sudo xcode-select --install to install them, without getting Xcode in the process.
    How does one distribute a Perl application on a MacOS where Xcode is not an option, and thus it's not an option to install modules that require a regular build (C compiler, make, etc)?
    I think you should put Perl and all the modules in the YourApplication.app bundle. Then you won't have Perl and modules your user might not be able to compile as dependencies.

      Seconding the second recommendation there. That has the advantage that you can guarantee that perl will be there (I want to say I've heard rumors that it might be going away in future OS X releases), that it will be the version you want/expect (and also can target a newer perl because the stock OS' is a long in the tooth 5.18 for 10.15), and that it has the modules you want installed (possibly even going as far as to segregate those into a local::lib hierarchy just to be able to upgrade those separately).

      The cake is a lie.
      The cake is a lie.
      The cake is a lie.

      You may be on to something...
      you can try platypus from sveinbjorn.org
Re: What's the "State Of the Art" way to distribute cli "Apps" on MacOS sans Xcode?
by choroba (Cardinal) on Feb 03, 2022 at 10:20 UTC
    > thee (plural)

    Plural of "thee" is "you" or "ye".

    map{substr$_->[0],$_->[1]||0,1}[\*||{},3],[[]],[ref qr-1,-,-1],[{}],[sub{}^*ARGV,3]

      There's me thinking it was Thees!

        According to this table https://en.wikipedia.org/wiki/Early_Modern_English#Pronouns ...

        ... is "you" the plural objective form of "thee".

        "Objective" means accusative (direct object) and dative (indirect object) collapsed to one case.

          *I* come humbly once again to beseech *thee* (nominative) (accusative)

        Apparently "thee" was also sometimes used instead of "thou", the plural could be "ye" than.

        Most English speaker know these pronouns only from Bible and Shakespeare quotes and are misunderstanding them, e.g. "thou" is actually informal - compare "du" (German), "tu" (various Romance languages)

        For those knowing Modern Standard German

        • thou = du
        • thee = dich / dir
        • ye = euch

        compare also Middle English where the pronouns are still very similar to Modern German ( like "euch" = "eow" )

        edit

        the plural replacing the singular can be seen in various languages

        like in Latin American varieties

        • Spanish vos for tu
        • Portuguese voce for tu
        Standard French still retains strict separation between tu/vous while in Haitian it collapsed to "ou"

        My theory is that this is related with "lower class language", England was ruled for centuries by a French speaking class (e.g. Robin Hood vs King John)

        Cheers Rolf
        (addicted to the Perl Programming Language :)
        Wikisyntax for the Monastery

        Thank yous!
Re: What's the "State Of the Art" way to distribute cli "Apps" on MacOS sans Xcode?
by Anonymous Monk on Jan 10, 2023 at 11:26 UTC
    How does one distribute a Perl application on a MacOS where Xcode is not an option, and thus it's not an option to install modules that require a regular build (C compiler, make, etc)? Safely assume (thankfully) this is a non-GUI application.

    Your prayer was answered on October 10, 2022 by Gavin Hayes:

    Perl::Dist::APPerl - Actually Portable Perl (APPerl) is a distribution of Perl the runs on several x86_64 operating systems via the same binary. It builds to a single binary with perl modules packed inside of it. Cross-platform, single binary, standalone Perl applications can be made by building custom versions of APPerl, with and without compiling Perl from scratch

    Binaries and more at: computoid.com/APPerl/