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

Right, but it's not installing. I'm not sure why it's trying to install when I don't need it and I'm not sure how to prevent it from installing that dependency.

$PM = "Perl Monk's";
$MCF = "Most Clueless Friar Abbot Bishop Pontiff Deacon Curate Priest";
$nysus = $PM . ' ' . $MCF;
Click here if you love Perl Monks

  • Comment on Re^2: Installing File::Repl on a Mac possible?

Replies are listed 'Best First'.
Re^3: Installing File::Repl on a Mac possible?
by marto (Cardinal) on Sep 09, 2018 at 20:06 UTC

    It takes a few seconds to find out what the module is doing here by looking at the source code. Take a look.

      It's not obvious to me.

      $PM = "Perl Monk's";
      $MCF = "Most Clueless Friar Abbot Bishop Pontiff Deacon Curate Priest";
      $nysus = $PM . ' ' . $MCF;
      Click here if you love Perl Monks

        It's not obvious to me

        Looking at the File::Repl-2.3 source, the cpan utility attempts to install Win32::API because the Makefile.PL tells it to do so. Line 32 of the Makefile.PL is:
        Win32::API => 0, # 0.2000.07.08,
        For installing with cpan, that line needs to be made invisible (eg by removing it) to all systems except Windows - or cpan needs to be ordered to not install missing dependencies (I think cpan can be configured to do that).

        Another alternative is to download and unpack the File-Repl source, cd to the top level folder and build manually - ie run "perl Makefile.PL", then "make test", then "make install".
        The "perl Makefile.PL" command will produce a warning that Win32::API is not installed. You can ignore that warning.
        Any other bugs relating to File::Repl-2.3 on a non-Windows system should become evident during the "make test" stage.

        Cheers,
        Rob