Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Installing File::Repl on a Mac possible?

by nysus (Parson)
on Sep 09, 2018 at 17:01 UTC ( [id://1221985]=perlquestion: print w/replies, xml ) Need Help??

nysus has asked for the wisdom of the Perl Monks concerning the following question:

I'm trying to install File::Repl on a Mac. I'm not sure it can be done. From looking at the tests on cpan, it seems to have worked on darwin machines. But when I try to install the module I get an error and when trying to install Win32::API directly I get an OS not supported error.

If this won't install, are there any good replacements for File::Repl?

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

Replies are listed 'Best First'.
Re: Installing File::Repl on a Mac possible?
by Laurent_R (Canon) on Sep 09, 2018 at 17:58 UTC
    As far as I can say, you should need Win32::API only on Windows systems. You should not need it on a Mac.

      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

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

Re: Installing File::Repl on a Mac possible?
by 1nickt (Canon) on Sep 10, 2018 at 01:01 UTC

    Hi, try this, worked for me:

    1. Install File::HomeDir
    2. Copy Repl.pm from the File::Repl distro to a directory called 'File' somewhere in your Perl lib path
    3. Test by running the test.pl included in the distro (I got 'Variable" @dirlist" will not stay shared at <PATH>/File/Repl.pm line 1012.")

    Hope this helps!


    The way forward always starts with a minimal test.
Re: Installing File::Repl on a Mac possible?
by kevbot (Vicar) on Sep 10, 2018 at 00:03 UTC
    If this won't install, are there any good replacements for File::Repl?

    If you only need the directory replication and not other features offered by File::Repl perhaps File::DirSync is a viable alternative (it installed on my Mac, but I have never used this module).

Re: Installing File::Repl on a Mac possible?
by LanX (Saint) on Sep 09, 2018 at 21:46 UTC
    > If this won't install, are there any good replacements for File::Repl?

    Depends what you want to do, guessing from the name "REPL" (Read-Eval-Print-Loop) is not very helpful here.

    Cheers Rolf
    (addicted to the Perl Programming Language :)
    Wikisyntax for the Monastery FootballPerl is like chess, only without the dice

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://1221985]
Approved by marto
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (2)
As of 2024-04-20 12:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found