Perl Language
Perlbrew
Buscar..
Introducción
Perlbrew es una herramienta para administrar múltiples instalaciones de Perl en su directorio $HOME
.
Observaciones
Configurar perlbrew por primera vez
Crear script de configuración ~/.perlbrew.sh
:
# Reset any environment variables that could confuse `perlbrew`:
export PERL_LOCAL_LIB_ROOT=
export PERL_MB_OPT=
export PERL_MM_OPT=
# decide where you want to install perlbrew:
export PERLBREW_ROOT=~/perlbrew
[[ -f "$PERLBREW_ROOT/etc/bashrc" ]] && source "$PERLBREW_ROOT/etc/bashrc"
Crear script de instalación install_perlbrew.sh
:
source ~/.perlbrew.sh
curl -L https://install.perlbrew.pl | bash
source "$PERLBREW_ROOT/etc/bashrc"
# Decide which version you would like to install:
version=perl-5.24.1
perlbrew install "$version"
perlbrew install-cpanm
perlbrew switch "$version"
Ejecutar script de instalación:
./install_perlbrew.sh
Agrega al final de tu ~/.bashrc
[[ -f ~/.perlbrew.sh ]] && source ~/.perlbrew.sh
Fuente ~/.bashrc
:
source ~/.bashrc
Modified text is an extract of the original Stack Overflow Documentation
Licenciado bajo CC BY-SA 3.0
No afiliado a Stack Overflow