Building your own Perl is not that hard -- just time-consuming, and a lot of that is just waiting for tests to run should you choose to do them.

  1. Install XCode, if you have not already done so.
  2. Install the XCode command line tools if you have not already done so: $ xcode-select --install.
  3. Decide where Perl should live. Create that directory. For the purposes of the following write-up, call the new directory "the-directory-you-want-Perl-to-live-in". For convenience in running the configure script, also create a bin/ directory under it.
  4. Download the kit from CPAN into a working directory, expand it, and cd to the kit directory.
  5. Configure Perl: $ ./Configure -Dprefix=the-directory-you-want-Perl-to-live-in. Answer a bunch of questions, defaulting almost all of them.
  6. Build Perl: $ make.
  7. Test Perl if desired: $ make test.
  8. Install Perl: $ make install. If you are installing in a system directory you may need to $ sudo make install.
  9. Add the bin/ directory to your PATH.

Installing a system-wide Perl under macOS has become increasingly difficult as Apple places more restrictions on system access. Mine currently lives in /Users/Shared/. You could also put it in your personal directory somewhere.


In reply to Re: brew install perl by Anonymous Monk
in thread brew install perl by Anonymous Monk

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.