0
votes

I tried brew update and after the Heroku autocomplete installation I started getting the following error. How can I solve this issue?

Can't locate local/lib.pm in @INC (you may need to install the local::lib module) (@INC contains: /Users/franklin/perl5/lib/perl5 /usr/local/Cellar/perl/5.28.0/lib/perl5/site_perl/5.28.0/darwin-thread-multi-2level /usr/local/Cellar/perl/5.28.0/lib/perl5/site_perl/5.28.0 /usr/local/Cellar/perl/5.28.0/lib/perl5/5.28.0/darwin-thread-multi-2level /usr/local/Cellar/perl/5.28.0/lib/perl5/5.28.0 /usr/local/lib/perl5/site_perl/5.28.0/darwin-thread-multi-2level /usr/local/lib/perl5/site_perl/5.28.0).

BEGIN failed--compilation aborted.

“Can't locate local/lib.pm” Error

1

1 Answers

3
votes

It looks like it's trying to use the local::lib Perl module. That creates a Perl library directory in your local directory so you don't have to install modules as root.

I don't know why that tool didn't do that for you (and you should tell those maintainers about that). You can install it yourself though:

I wish this was a bit easier so you could just use a quick cpan command to do it. There's also quite a bit about local::lib on StackOverflow.

Other advice has been to remove an offending line from .bash_profile, but something else in the tool might expect whatever that sets up.