in reply to Re^2: Perl DBI installation problem on MacOS Sierra - Can't open blib/lib/DBI/Util/
in thread Perl DBI installation problem on MacOS Sierra - Can't open blib/lib/DBI/Util/

Nanjizal:

It will be somewhere in your @INC path. I use cygwin which has a locate command, so I used locate to find it:

$ locate AutoSplit locate: warning: database ‘/var/locatedb’ is more than 8 days old (act +ual age is 13.4 days) . . . C:/cygwin64\lib\perl5\5.22\AutoSplit.pm C:/cygwin64\usr\share\man\man3\AutoSplit.3pm.gz . . .

You could likely find it by doing something like:

$ perl -e 'for (@INC) { $t="$_/AutoSplit.pm"; print $t,"\n" if -e $t } +' /usr/lib/perl5/5.22/AutoSplit.pm

Note: That would only work if AutoSplit happens to be at the root of a directory in @INC (which it is, in this case). A File::Find solution would be more general for locating files that might be deeper in the @INC directory hierarchy.

Update: I second kcott's(++) suggest to use perlbrew. When I was using a Mac, it worked very well for me.

...roboticus

When your only tool is a hammer, all problems look like your thumb.

Replies are listed 'Best First'.
Re^4: Perl DBI installation problem on MacOS Sierra - Can't open blib/lib/DBI/Util/
by Nanjizal (Novice) on Oct 27, 2017 at 15:04 UTC

    Thanks roboticus.

    That's a bit outside my comfort zone for now, but hopefully one day I will get there!

    For the moment I am trying to install a recent Perl version using Perlbrew, as suggested by kcott, but have run into some difficulties getting it installed.