How do I specify which version of perl is being used when I install a module using cpanm?
You should have two cpanm, one installed with each perl. They will have different shebang (#!) lines.
It's simply a question of using the right cpanm (e.g. by using its full path to launch it).
head -n 1 /tool/bin/cpanm # #!/tool/bin/perl /tool/bin/cpanm Some::Module # Installs for /tool/bin/perl
The cpanm script itself should work with any perl, so you could explicitly specify the perl to use as a fallback.
/tool/bin/perl "$( which cpanm )" Some::Module
Why do the new modules I installed to /new_location/perl_modules/5.20/lib/perl5 work for both /tool/bin/perl (v5.20.0) and /usr/bin/perl (v5.26.3)
There's no guarantee that using different build will fail.
There's merely no effort made to ensure that it won't fail.
In reply to Re: "symbol lookup error" message help
by ikegami
in thread "symbol lookup error" message help
by Special_K
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |