[ 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/21 01:26]
popel
perlbrew [2014/05/22 18:48]
zeman perlbrew off
Line 5: Line 5:
 Martin Popel Martin Popel
  
-==== How to setup the Perlbrew environment ==== +===== How to setup the Perlbrew environment ===== 
-In your ''~.bashrc'':+Add to your ''~.bashrc'':
  
   source /net/work/projects/perlbrew/init   source /net/work/projects/perlbrew/init
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. 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.
  
-==== 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.16.3    # use one of these perls for the current shell
   perlbrew switch perl-5.16.3 # use this perl version permanently   perlbrew switch perl-5.16.3 # use this perl version permanently
 +  perlbrew off                # return to the system installation of perl
  
-==== How to install missing modules from CPAN ====+===== How to install missing modules from CPAN =====
 If you see an error message such as ''Can't locate String/Diff.pm in @INC'', it means the module String::Diff is not installed. If you see an error message such as ''Can't locate String/Diff.pm in @INC'', it means the module String::Diff is not installed.
 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.
Line 35: Line 36:
 You can install the modules also manually (''perl Build.PL && ./Build && ./Build test && ./Build install''). There is no need to set ''--prefix'' nor ''--install_base'', because you (everyone group ufal) have write access to the shared ÚFAL perlbrew repository. You can install the modules also manually (''perl Build.PL && ./Build && ./Build test && ./Build install''). There is no need to set ''--prefix'' nor ''--install_base'', because you (everyone group ufal) have write access to the shared ÚFAL perlbrew repository.
  
-==== How to install new Perl version ====+===== How to install new Perl version =====
  
   perlbrew available                    # list perl versions available for download   perlbrew available                    # list perl versions available for download

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