Both sides previous revision
Previous revision
Next revision
|
Previous revision
|
perlbrew [2014/08/11 15:55] popel |
perlbrew [2016/11/25 12:34] (current) ufal |
source /net/work/projects/perlbrew/init | source /net/work/projects/perlbrew/init |
eval "$(bash-complete setup)" | eval "$(bash-complete setup)" |
| |
| |
The second line is optional, but it enables [[https://metacpan.org/pod/Bash::Completion|Bash Completion]] for [[http://perlbrew.pl/|perlbrew]], [[https://metacpan.org/pod/App::cpanminus|cpanm]] and treex (if the respective ''Bash::Completion::Plugins::XY'' modules are installed). | The second line is optional, but it enables [[https://metacpan.org/pod/Bash::Completion|Bash Completion]] for [[http://perlbrew.pl/|perlbrew]], [[https://metacpan.org/pod/App::cpanminus|cpanm]] and treex (if the respective ''Bash::Completion::Plugins::XY'' modules are installed). |
| |
export PERL5LIB="" | export PERL5LIB="" |
| |
| To finish the Perlbrew environment setup, run (in a new bash session) |
| |
| perlbrew switch perl-5.18.2 |
| |
| |
# but to get support for XFT anti-aliased fonts on newer Ubuntu, let's do: | # but to get support for XFT anti-aliased fonts on newer Ubuntu, let's do: |
cpanm -n -v git://github.com/eserte/perl-tk.git | cpanm -n -v git://github.com/eserte/perl-tk.git |
cpanm -n UNIVERSAL::DOES PerlIO::Util # these modules have (reported) errors, but we need them as dependencies | cpanm -n PerlIO::Util # this module has (reported) errors |
cpanm < list.txt | cpanm < list.txt |
| |
===== How to install Perlbrew for a new architecture ===== | ===== How to install Perlbrew for a new architecture ===== |
| |
source /net/work/projects/perlbrew/init | 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). | (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''). We need to source it once again below, so ''$PERLBREW_ROOT/etc/bashrc'' is sourced after perlbrew is installed. |
| |
wget -O - http://install.perlbrew.pl | bash | wget -O - http://install.perlbrew.pl | bash |
perlbrew install-cpanm | source /net/work/projects/perlbrew/init |
| perlbrew install-cpanm |
| |
That's all! Now, install some perl, as described [[perlbrew#how-to-install-new-perl-version|above]]. | That's all! Now, install some perl, as described [[perlbrew#how-to-install-new-perl-version|above]]. |
| |
perlbrew available | perlbrew available |
perlbrew install -j 4 perl-5.18.2 | perlbrew install -j 4 perl-5.18.2 |
# If this fails as mentioned above, finish the installation with something like | # 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 | # cd /net/work/projects/perlbrew/Ubuntu/14.04/x86_64/build/perl-5.18.2; make install |
perlbrew switch perl-5.18.2 | perlbrew switch perl-5.18.2 |
| |