[ Skip to the content ]

Institute of Formal and Applied Linguistics Wiki


[ Back to the navigation ]

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
perlbrew [2014/05/24 01:58]
popel
perlbrew [2014/05/27 14:31]
popel
Line 13: Line 13:
 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).
 Make sure you have deleted (commented out) the old setup_platform setup (''source /net/work/projects/perl_repo/admin/bin/setup_platform'') from your ''~/.bashrc''. Make sure you have deleted (commented out) the old setup_platform setup (''source /net/work/projects/perl_repo/admin/bin/setup_platform'') from your ''~/.bashrc''.
 +
 +Also note that perlbrew (unlike ''setup_platform'') does not change your ''$PERL5LIB''. You probably add some local Perl modules to ''$PERL5LIB'' in your ''.bashrc'' (e.g. ''export PERL5LIB="/home/popel/tmt/treex/lib:$PERL5LIB"''). When you source ''.bashrc'' again, make sure you don't have duplicate paths in ''$PERL5LIB'' (e.g. ''"/home/popel/tmt/treex/lib:/home/popel/tmt/treex/lib"'') -- to prevent this add this line to the //beginning// of your ''.bashrc'':
 +
 +  export PERL5LIB=""
 +
  
 ===== How to use Perlbrew ===== ===== How to use Perlbrew =====
Line 44: Line 49:
   perlbrew available                    # list perl versions available for download   perlbrew available                    # list perl versions available for download
   perlbrew install perl-5.16.3          # install this older version   perlbrew install perl-5.16.3          # install this older version
-  perlbrew install -Dcc=gcc perl-5.16.# on Ubuntu10.04 64bit, I had to use this switch+  perlbrew install -Dcc=gcc --thread --multi -j 4 perl-5.20.# on Ubuntu10.04 64bit, I had to use -Dcc=gcc 
 +   
 +(Note that when trying to compile threaded perl on cluster machines I had to ignore [[http://www.nntp.perl.org/group/perl.perl5.porters/2014/05/msg214911.html|this]] error.)
  
 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:

[ Back to the navigation ] [ Back to the content ]