I don't have a Mac to test it on, but the applying the following patch to the Makefile.PL (patch -u Makefile.PL path/to/patchfile) should work for you. The patch adds the prereq of File::HomeDir, and only includes Win32::API if it's a MSWin32 machine

--- Makefile-orig.PL 2018-09-10 06:47:08.686476300 -0700 +++ Makefile.PL 2018-09-10 06:50:29.999858000 -0700 @@ -22,15 +22,24 @@ use ExtUtils::MakeMaker; -WriteMakefile( - 'NAME' => 'File::Repl', - 'VERSION_FROM' => 'Repl.pm', # finds $VERSION - 'PREREQ_PM' => { +my $prereq = { File::Find => 0, File::Copy => 2.03, File::Basename => 2.6, - Win32::API => 0, # 0.2000.07.08, - }, # e.g., Module::Name => 1.1 + File::HomeDir => 0, +# Win32::API => 0, # 0.2000.07.08, +}; +$prereq->{Win32::API} = 0 if $^O eq 'MSWin32'; + +WriteMakefile( + 'NAME' => 'File::Repl', + 'VERSION_FROM' => 'Repl.pm', # finds $VERSION + 'PREREQ_PM' => $prereq, #{ +# File::Find => 0, +# File::Copy => 2.03, +# File::Basename => 2.6, +# Win32::API => 0, # 0.2000.07.08, +# }, # e.g., Module::Name => 1.1 'dist' => { ZIP => 'wzzip.exe', ZIPFLAGS => "-P",

The procedure I would use (since I use cpanm) would be to put the patchfile in my home directory, then:

cpanm --look File::Repl patch -u Makefile.PL ~/patchfile make make test make install

If that works for you, you should file a bug report at rt://File-Repl, and email the author mentioned at File::Repl (there are bugs from years ago, so I'm not sure he's paying attention to the bug tracker), including the patch file. (Doing it through a repo would have been even better, but couldn't find it in a quick look at github.)


In reply to Re^7: Installing File::Repl on a Mac possible? by pryrt
in thread Installing File::Repl on a Mac possible? by nysus

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.