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