Both sides previous revision
Previous revision
Next revision
|
Previous revision
Next revision
Both sides next revision
|
perlbrew [2014/06/04 17:42] popel |
perlbrew [2014/08/11 15:56] popel |
| |
===== How to setup the Perlbrew environment ===== | ===== How to setup the Perlbrew environment ===== |
Add to your ''~.bashrc'': | Add to your ''~/.bashrc'': |
| |
source /net/work/projects/perlbrew/init | source /net/work/projects/perlbrew/init |
* ''Treex::External::NADA'': cd $TMT_ROOT/install/tool_installation/NADA && perl Makefile.PL && make && make install | * ''Treex::External::NADA'': cd $TMT_ROOT/install/tool_installation/NADA && perl Makefile.PL && make && make install |
* ''Morce::English'': cd $TMT_ROOT/libs/packaged/Morce-English && perl Build.PL && ./Build && ./Build test && ./Build install | * ''Morce::English'': cd $TMT_ROOT/libs/packaged/Morce-English && perl Build.PL && ./Build && ./Build test && ./Build install |
* ''Featurama::Perc'': cd $TMT_ROOT/libs/packaged/Featurama && ./install.sh | * ''CzechMorpho'': cd $TMT_ROOT/libs/packaged/CzechMorpho && perl Build.PL && ./Build && ./Build test && ./Build install |
| * ''Morce::Czech'': cd $TMT_ROOT/libs/packaged/Morce-Czech && perl Build.PL && ./Build && ./Build test && ./Build install |
| * ''Featurama::Perc'': cd $TMT_ROOT/libs/packaged/Featurama && bash install.sh |
| |
| ===== How to install Perlbrew for a new architecture ===== |
| |
| source /net/work/projects/perlbrew/init |
| |
| (You probably have this in your ''~/.bashrc'', so you don't need to run it again). This will issue some warnings because perlbrew is not installed, but it will set the variables PERLBREW_ROOT and PERLBREW_HOME, so the following installation goes to the shared directory (''/net/work/projects/perlbrew/$ARCHITECTURE''). |
| |
| wget -O - http://install.perlbrew.pl | bash |
| perlbrew install-cpanm |
| |
| That's all! Now, install some perl, as described [[perlbrew#how-to-install-new-perl-version|above]]. |
| |
| perlbrew available |
| perlbrew install -j 4 perl-5.18.2 |
| # If this fails as mentioned above, finish the installation with something like |
| # cd /net/work/projects/perlbrew/Ubuntu/14.04/x86_64/build/perl-5.18.2; make install |
| perlbrew switch perl-5.18.2 |
| |