Perl path problems after high sierra and Xcode update. Help?


(Nick Papadonis) #1

Hi,

I noticed that irssi is now referencing the Mac supplied /usr/bin/perl (5.18) instead of homebrew supplied /usr/local/bin/perl (5.28), in which the first is missing required libraries/modules from it’s search path. Irssi fails on start:

Can’t locate lib.pm: Permission denied at (eval 8) line 1.
BEGIN failed–compilation aborted at (eval 8) line 1.

Automake:
Running autoreconf …
Can’t locate strict.pm: Permission denied at /usr/local/Cellar/autoconf/2.69/share/autoconf/Autom4te/Channels.pm line 70.

I noticed this using automake and irssi, which are just a couple examples.

Is this a homebrew bug, my misconfiguration, or something on the Apple side? Maybe the homebrew packages need to reference #!/usr/local/bin/perl instead to allow Homebrew and Xcode to work as designed.

I tried changing the perl binary, but no permissions to do so:
$ sudo mv /usr/bin/perl /usr/bin/perl.mac.bak
mv: rename /usr/bin/perl to /usr/bin/perl.mac.bak: Operation not permitted

Surprised this wasn’t caught before.

Thanks


(Sean Molenaar) #2

Packages preferably refer to the Mac version of dependencies, unless those are insufficient.


(Nick Papadonis) #3

Is there any reason why automake is having problems then?


(Sean Molenaar) #4

I guess they’re insufficient for automake then.