in reply to Re^6: Installing File::Repl on a Mac possible?
in thread Installing File::Repl on a Mac possible?

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.)