Hail, O Monks.
I'm new to Macintoshes. Mine (Monterey) comes with Perl. I installed Homebrew. I then followed some advice I found somewhere and installed another copy of Perl (probably through Homebrew, but I'm not sure). Now when I run cpanm Array::Compare I'm told
Can't write to /Library/Perl/5.30 and /usr/local/bin: Installing modules to /Users/my_username_here/perl5
and the installation goes through. Then, when I try to use Array::Compare, I'm told
Can't locate Array/Compare.pm in @INC (you may need to install the Array::Compare module) (@INC contains: /opt/homebrew/Cellar/perl/5.34.0/lib/perl5/site_perl/5.34.0/darwin-thread-multi-2level /opt/homebrew/Cellar/perl/5.34.0/lib/perl5/site_perl/5.34.0 /opt/homebrew/Cellar/perl/5.34.0/lib/perl5/5.34.0/darwin-thread-multi-2level /opt/homebrew/Cellar/perl/5.34.0/lib/perl5/5.34.0 /opt/homebrew/lib/perl5/site_perl/5.34.0) at -e line 1.
All I want to do is be able to install modules using cpanm and then use them, the way I used to on Windows. What should I do?
Note, I don't mind uninstalling the copy that I installed of Perl and starting over, if that's the best way.
In reply to module installation woes on a Mac by msh210
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |