![]() ![]() ![]() ![]() You would do this if your system administrator hasn't already installed local::lib. bashrc file - eval "$(perl -I$HOME/perl5/lib/perl5 -Mlocal::lib)" The bootstrapping techniqueĪ typical way to install local::lib is using what is known as the "bootstrapping" technique. PERL_LOCAL_LIB_ROOT="/home/usename/perl5:$PERL_LOCAL_LIB_ROOT" export PERL_LOCAL_LIB_ROOT įrom a. PATH="/home/username/perl5/bin:$PATH" export PATH PERL5LIB="/home/username/perl5/lib/perl5" export PERL5LIB PERL_MM_OPT='INSTALL_BASE=/home/username/perl5' export PERL_MM_OPT PERL_MB_OPT='-install_base /home/username/perl5' export PERL_MB_OPT Perl -MCPAN -Mlocal::lib -e 'CPAN::install(LWP)' Use local::lib "$FindBin::Bin/./support" # app-local support libraryįrom the shell - # Install LWP and its missing dependencies to the '~/perl5' directory In code - use local::lib # sets up a local lib at ~/perl5 Local::lib - create and use a local lib/ for perl modules with PERL5LIB SYNOPSIS CREATING A SELF-CONTAINED SET OF MODULES.Differences when using this module under Win32.Bootstrapping into an alternate directory. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |