Maybe, someday. But, as you have seen, there is more than one way to install perl
This information can be found in the Perl script, and perl itself is already testing for the presence of the required modules. (See the error message you have posted above.)
IIRC you succeeded to install perl 5.26 and cpanm on your other Mac two days ago. So I suggest to first read through the posts from two days ago.
To sum it up:
-
Install perl via Homebrew. Follow the instructions you see in the Terminal during/after the install. (Speaking namely of this one.)
-
Install cpanm as you have done two days ago.
-
Create the ENV_PERL5LIB variable in KM with the paths as shown. It is also extremely helpful that you set up your ENV_PATH variable so that it includes the Homebrew install path. These are for example my paths:
ENV_PATH:
/Users/tom/bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin
ENV_PERL5LIB:
/Users/tom/perl5/lib/perl5:/usr/local/Cellar/perl/5.26.0/lib/perl5/site_perl/5.26.0
Replace
tom
with your account name, of course. -
Install the modules as required by the script (
cpanm <module name>
)
Nope. Do as described above and keep an eye on messages in the Terminal.
Also, I would install the modules one by one, because sometimes cpanm throws an error. (Most of the times a dependency problem.)
This has to do how you have configured it during/after the install. (locallib or not, the mentioned HB message).