Skip to main content
added 265 characters in body
Source Link
ikegami
  • 384.6k
  • 17
  • 281
  • 542

First of all, pass -Duserelocatableinc to perlbrew when installing a build of Perl to avoid problems that will arrise from differences in the paths used to access the installed perl.

 

If the other users simply want to use one of the perlbrew-installed builds of Perl, they simply need to point the shebang line of their script to the perl inside the perlbrew directory as usual.

For example, if PERLBREW_ROOT is /home/ikegami/usr/perlbrew and the perlbrew label for the install is feed_fetcher, one would use

#!/home/ikegami/usr/perlbrew/perls/feed_fetcher/bin/perl

If the other users also want to install modules and/or use scripts installed by modules (e.g. Module::CoreList's corelist, Unicode::Tussle's uniprops, etc), they must also do the following:

  1. In their login script, add

     export PERLBREW_ROOT=/.../perl5/perlbrew
    
  2. In their shell startup script, add

     source "${PERLBREW_ROOT:-$HOME/perl5/perlbrew}"/etc/bashrc
    

You can technically skip the first step, but only if the path hardcoded in etc/bashrc is correct for that user.

First of all, pass -Duserelocatableinc to perlbrew when installing a build of Perl to avoid problems that will arrise from differences in the paths used to access the installed perl.

If the other users simply want to use one of the perlbrew-installed builds of Perl, they simply need to point the shebang line of their script to the perl inside the perlbrew directory.

If the other users also want to install modules and/or use scripts installed by modules (e.g. Module::CoreList's corelist, Unicode::Tussle's uniprops, etc),

  1. In their login script, add

     export PERLBREW_ROOT=/.../perl5/perlbrew
    
  2. In their shell startup script, add

     source "${PERLBREW_ROOT:-$HOME/perl5/perlbrew}"/etc/bashrc
    

You can technically skip the first step, but only if the path hardcoded in etc/bashrc is correct for that user.

First of all, pass -Duserelocatableinc to perlbrew when installing a build of Perl to avoid problems that will arrise from differences in the paths used to access the installed perl.

 

If the other users simply want to use one of the perlbrew-installed builds of Perl, they simply need to point the shebang line of their script to the perl inside the perlbrew directory as usual.

For example, if PERLBREW_ROOT is /home/ikegami/usr/perlbrew and the perlbrew label for the install is feed_fetcher, one would use

#!/home/ikegami/usr/perlbrew/perls/feed_fetcher/bin/perl

If the other users also want to install modules and/or use scripts installed by modules (e.g. Module::CoreList's corelist, Unicode::Tussle's uniprops, etc), they must also do the following:

  1. In their login script, add

     export PERLBREW_ROOT=/.../perl5/perlbrew
    
  2. In their shell startup script, add

     source "${PERLBREW_ROOT:-$HOME/perl5/perlbrew}"/etc/bashrc
    

You can technically skip the first step, but only if the path hardcoded in etc/bashrc is correct for that user.

Source Link
ikegami
  • 384.6k
  • 17
  • 281
  • 542

First of all, pass -Duserelocatableinc to perlbrew when installing a build of Perl to avoid problems that will arrise from differences in the paths used to access the installed perl.

If the other users simply want to use one of the perlbrew-installed builds of Perl, they simply need to point the shebang line of their script to the perl inside the perlbrew directory.

If the other users also want to install modules and/or use scripts installed by modules (e.g. Module::CoreList's corelist, Unicode::Tussle's uniprops, etc),

  1. In their login script, add

     export PERLBREW_ROOT=/.../perl5/perlbrew
    
  2. In their shell startup script, add

     source "${PERLBREW_ROOT:-$HOME/perl5/perlbrew}"/etc/bashrc
    

You can technically skip the first step, but only if the path hardcoded in etc/bashrc is correct for that user.