in reply to "symbol lookup error" message help
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: "symbol lookup error" message help
by Special_K (Pilgrim) on Jan 28, 2023 at 17:49 UTC | |
by Anonymous Monk on Feb 01, 2023 at 05:54 UTC | |
by Special_K (Pilgrim) on Feb 03, 2023 at 20:10 UTC | |
by afoken (Chancellor) on Feb 04, 2023 at 10:40 UTC | |
|
Re^2: "symbol lookup error" message help
by Special_K (Pilgrim) on Feb 03, 2023 at 21:14 UTC | |
by Corion (Patriarch) on Feb 03, 2023 at 21:32 UTC | |
|
Re^2: "symbol lookup error" message help
by Special_K (Pilgrim) on Feb 03, 2023 at 21:52 UTC | |
by Corion (Patriarch) on Feb 03, 2023 at 22:02 UTC | |
by ikegami (Patriarch) on Feb 05, 2023 at 19:23 UTC | |
by Anonymous Monk on Feb 05, 2023 at 19:37 UTC |