Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | Next revision Both sides next revision | ||
perlbrew [2014/05/21 01:12] popel |
perlbrew [2014/05/21 01:26] popel |
||
---|---|---|---|
Line 19: | Line 19: | ||
==== How to install missing modules from CPAN ==== | ==== How to install missing modules from CPAN ==== | ||
- | If you see an error message '' | + | If you see an error message |
You can install it into the ÚFAL perlbrew repository, so it will be available also for others. | You can install it into the ÚFAL perlbrew repository, so it will be available also for others. | ||
If you are used to '' | If you are used to '' | ||
Line 25: | Line 25: | ||
cpanm String:: | cpanm String:: | ||
- | This installs String:: | + | This installs String:: |
If you want to install it for all Perl versions and the current architecture, | If you want to install it for all Perl versions and the current architecture, | ||
perlbrew exec cpanm String:: | perlbrew exec cpanm String:: | ||
- | If you did this on your machine (32bit), you still need to ssh to some 64bit machine (e.g. '' | + | If you did this on your machine (32bit), you still need to ssh to some 64bit machine (e.g. '' |
- | Two useful switches | + | Useful switch |
You can install the modules also manually ('' | You can install the modules also manually ('' | ||
+ | |||
+ | ==== How to install new Perl version ==== | ||
+ | |||
+ | perlbrew available | ||
+ | perlbrew install perl-5.16.3 | ||
+ | perlbrew install -Dcc=gcc perl-5.16.3 # on Ubuntu10.04 64bit, I had to use this switch | ||
+ | |||
+ | Now, we probably want to install all modules from the current perl to the new perl: | ||
+ | |||
+ | perlbrew list-modules > list.txt | ||
+ | perlbrew switch perl-5.16.3 | ||
+ | cpanm < list.txt | ||
+ |