Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
perlbrew [2014/05/22 18:48] zeman perlbrew off |
perlbrew [2014/05/28 11:14] popel |
||
---|---|---|---|
Line 11: | Line 11: | ||
eval " | eval " | ||
- | The second line is optional, but it enables [[https:// | + | The second line is optional, but it enables [[https:// |
+ | Make sure you have deleted (commented out) the old setup_platform setup ('' | ||
+ | |||
+ | Also note that perlbrew (unlike '' | ||
+ | |||
+ | export PERL5LIB="" | ||
===== How to use Perlbrew ===== | ===== How to use Perlbrew ===== | ||
perlbrew list # Which perl versions are installed? | perlbrew list # Which perl versions are installed? | ||
- | perlbrew use perl-5.16.3 # use one of these perls for the current shell | + | perlbrew use perl-5.18.2 # use one of these perls for the current shell |
- | perlbrew switch perl-5.16.3 # use this perl version permanently | + | perlbrew switch perl-5.18.2 # use this perl version permanently |
perlbrew off # return to the system installation of perl | perlbrew off # return to the system installation of perl | ||
+ | |||
+ | You can read [[https:// | ||
+ | Note that there is a separate Perlbrew environment for each architecture (32bit vs. 64bit machines) at ÚFAL, so if you switch to perl-5.18.2 on 32bit machines, you need to do it again on 64bit machines if you want to use perl-5.18.2 on both. | ||
===== How to install missing modules from CPAN ===== | ===== How to install missing modules from CPAN ===== | ||
Line 34: | Line 43: | ||
Useful switch for '' | Useful switch for '' | ||
- | You can install the modules also manually ('' | + | You can install the modules also manually ('' |
===== How to install new Perl version ===== | ===== How to install new Perl version ===== | ||
Line 40: | Line 49: | ||
perlbrew available | perlbrew available | ||
perlbrew install perl-5.16.3 | perlbrew install perl-5.16.3 | ||
- | perlbrew install -Dcc=gcc perl-5.16.3 # on Ubuntu10.04 64bit, I had to use this switch | + | perlbrew install -Dcc=gcc |
+ | |||
+ | (Note that when trying to compile threaded perl on cluster machines I had to ignore [[http:// | ||
Now, we probably want to install all modules from the current perl to the new perl: | Now, we probably want to install all modules from the current perl to the new perl: | ||
Line 46: | Line 57: | ||
perlbrew list-modules > list.txt | perlbrew list-modules > list.txt | ||
perlbrew switch perl-5.16.3 | perlbrew switch perl-5.16.3 | ||
+ | cpanm -n Tk # Tk tests are long and pop up many windows | ||
+ | cpanm -n UNIVERSAL:: | ||
cpanm < list.txt | cpanm < list.txt | ||
+ | ==== Tricky modules ==== | ||
+ | |||
+ | === Algorithm:: | ||
+ | In '' | ||
+ | |||
+ | #include < | ||
+ | #include < | ||
+ | |||
+ | === Algorithm:: | ||
+ | [[https:// |