G'day Chuma,

Your pathnames (/System/Library/Perl/Extras/5.18/...) indicate the System Perl v5.18. You say you have "ActivePerl 5.20". And later you say "I'm having a little trouble installing modules.".

I suspect you're partly working with the System Perl and partly with ActivePerl: therein lies your problem (or, at least, some aspect of it).

I have almost the same version as you (macOS 10.12.5). I run Perlbrew and have been for many years. I've installed 11 Perl versions (5.14 .. 5.26) using that, along with all the modules I use (via the cpan utility). For private modules written locally, I use the standard incantation (note the absence of sudo):

perl Makefile.PL && make && make test && make install

In the normal course of events, I do not interact with the System Perl at all; on the rare occasions that I do, it's usually little more than this:

$ perl -v | head -2 | tail -1 This is perl 5, version 26, subversion 0 (v5.26.0) built for darwin-th +read-multi-2level $ /usr/bin/perl -v | head -2 | tail -1 This is perl 5, version 18, subversion 2 (v5.18.2) built for darwin-th +read-multi-2level

As you can see, I'm normally running 5.26 (perl -v); and my System Perl (/usr/bin/perl -v) is 5.18, which is the same as yours.

I've never used ActivePerl on any Mac, so I can't really offer much in the way of advice regarding that. If you choose to continue using ActivePerl, you should spend some time finding out how you are also referencing the System Perl, then work out what you need to do to stop that.

I can advise that I successfully run Tk with Perlbrew (e.g. my most recent Tk post). I don't use pp; however, I can confirm a successful installation just now:

$ cpan ... cpan[1]> install PAR::Packer ... various messages including installation of dependencies ... RSCHUPP/PAR-Packer-1.039.tar.gz /usr/bin/make install -- OK cpan[2]> q ... $ which pp /Users/ken/perl5/perlbrew/perls/perl-5.26.0t/bin/pp

And, just to be clear, none of what I've said here is intended to invalidate other advice you've already received: as I'm not a user of that module, I'm not in a position to comment on any of that.

— Ken


In reply to Re: Issues with pp and Tk by kcott
in thread Issues with pp and Tk by Chuma

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.