Hi Monks

I've been programming with Perl for years on Windows (ActiveState and Strawberry). Now I need to move to macOS (High Sierra, Xcode installed for what that it can matter) and having big, big problems even to get started! As I didn't want to mess up the already installed version of Perl, I installed Perlbrew. The Perlbrew installation seems to be fine. To start using Perlbrew, I open the Terminal and write source ~/perl5/perlbrew/etc/bashrc At this point I can use the command Perlbrew. If I try to install Perl I use:

 ADs-MacBook-Air:~ ad$ perlbrew install 5.22.0

The installation begins and after a quite long time I get the following error message

Installing /Users/fc/perl5/perlbrew/build/perl-5.22.0 into ~/perl5/per +lbrew/perls/perl-5.22.0 This could take a while. You can run the following command on another +shell to track the status: tail -f ~/perl5/perlbrew/build.perl-5.22.0.log Installation process failed. To spot any issues, check /Users/fc/perl5/perlbrew/build.perl-5.22.0.log If some perl tests failed and you still want to install this distribut +ion anyway, do: (cd /Users/fc/perl5/perlbrew/build/perl-5.22.0; make install) You might also want to try upgrading patchperl before trying again: perlbrew install-patchperl Generally, if you need to install a perl distribution known to have mi +nor test failures, do one of these command to avoid seeing this message perlbrew --notest install 5.22.0 perlbrew --force install 5.22.0

I tried to install a few of Perl version and I get always the same error. I haven't forced installation yet, because I thing I should be able to install it without forcing it. Upgrading patchperl has been already performed. The log file is so long I do not see anything it helps me. However this are the last lines, maybe they say something to you:

est Summary Report ------------------- ../cpan/DB_File/t/db-hash.t (Wstat +: 512 Tests: 116 Failed: 26) Failed tests: 23-25, 27-28, 30, 37, 45-46, 68, 70, 72-77 82, 84, 86, 89-90, 98, 101, 106, 112 Non-zero exit status: 2 Parse errors: Bad plan. You planned 166 tests but ran 116. Files=2377, Tests=708513, 3749 wallclock secs (47.71 usr 9.17 sys + 3 +30.63 cusr 60.11 csys = 447.62 CPU) Result: FAIL make: *** [test_harness] Error 26 ##### Brew Failed #####

Why I am having so many problems starting to use Perl on a Mac while on a Windows I never experienced anything like this (i.e. everything works for me out-of-the-box)?


In reply to Using Perlbrew macOS impossible to install distributions 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.