Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # set the PERLBREW_ROOT environment variable
- $ export PERLBREW_ROOT=~/perl5/perlbrew
- # Delete ~/perl5/perlbrew/ folder
- $ rm -rf $PERLBREW_ROOT
- # Install perlbrew:
- $ \curl -L https://install.perlbrew.pl | bash
- # Activate perlbrew:
- $ source "$PERLBREW_ROOT/etc/bashrc"
- # install latest perl version:
- $ perlbrew install perl-5.34.0
- # install cpanm
- $ perlbrew install-cpanm
- # switch to the newly installed perl
- $ perlbrew switch perl-5.34.0
- # Check that it works:
- $ perl --version
- $ cpanm --version
- # Make the new perl available in all shells by adding the following statements to the end of your ~/.zshrc file:
- export PERLBREW_ROOT=~/perl5/perlbrew
- [[ -f "$PERLBREW_ROOT/etc/bashrc" ]] && source "$PERLBREW_ROOT/etc/bashrc"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement