in reply to Can't get Tk.pm to work [SOLVED]
"I feel, that somehow, I need to tell cpan, that I have a v5.22.1 perl version and not 5.20.2, so it installs module in the correct folder. How can I do it? Or how can I fix this?"
If you have multiple version of perl installed, each perl will have a version of cpan.
marto@laptop:~$ which cpan /usr/bin/cpan
Simply calling cpan Module::Name will invoke the first cpan in your PATH environment variable. Either provide the full path to cpan for the version of perl you want to install modules to (/app/perl26/bin/cpan Module::Name) or alter your PATH, giving precedence to the directory containing your target Perl installation. Also, consider using cpanm over cpan, it's faster.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Can't get Tk.pm to work
by igoryonya (Pilgrim) on Jan 26, 2018 at 15:31 UTC | |
by marto (Cardinal) on Jan 26, 2018 at 16:12 UTC | |
by igoryonya (Pilgrim) on Jan 26, 2018 at 22:44 UTC | |
by hippo (Archbishop) on Jan 26, 2018 at 16:27 UTC | |
by igoryonya (Pilgrim) on Jan 26, 2018 at 22:46 UTC | |
by poj (Abbot) on Jan 27, 2018 at 09:07 UTC | |
by igoryonya (Pilgrim) on Jan 29, 2018 at 10:03 UTC |