Closed miyagawa closed 2 years ago
Looks like I have an outdated version of Getopt::Long in perl library path. Getopt::Long changed its INSTALLDIRS correctly to site in 2.41. I don't recall how this was installed but explicitly installing 2.39 would do this.
➜ perl -v |head -2
This is perl 5, version 32, subversion 1 (v5.32.1) built for darwin-2level
➜ perl -MGetopt::Long\ 11
Getopt::Long version 11 required--this is only version 2.39 at /Users/miyagawa/.plenv/versions/5.32.1/lib/perl5/5.32.1/Getopt/Long.pm line 1489.
BEGIN failed--compilation aborted.
➜ corelist -a Getopt::Long | grep 5.32.1
v5.32.1 2.51
Restoring 2.51 has fixed the issue.
There actually seems to be a problem using cpanm as well, with
-L
: