Skip to content

Instantly share code, notes, and snippets.

@mvdbeek
Created August 21, 2015 13:16
Show Gist options
  • Save mvdbeek/6c46f2a996fc717bfd92 to your computer and use it in GitHub Desktop.
Save mvdbeek/6c46f2a996fc717bfd92 to your computer and use it in GitHub Desktop.
Can't locate local/lib.pm in @inc
mkdir -p ~/src/test/test_install_dir
cd ~/src/test/
wget http://www.cpan.org/authors/id/A/AP/APEIRON/local-lib-1.008009.tar.gz
tar xfvz local-lib-1.008009.tar.gz
cd local-lib-1.008009
export INSTALL_DIR=~/src/test/test_install_dir
export HOME=$INSTALL_DIR; export PATH=$INSTALL_DIR/bin/:$PATH; perl Makefile.PL --bootstrap=$INSTALL_DIR/local-lib/ --no-manpages
make install
echo "test local-lib/perl5"
#This should fail with Can't locate local/lib.pm in @INC
export PATH=$INSTALL_DIR/bin/:$PATH; eval $(perl -I$INSTALL_DIR/local-lib/perl5 -Mlocal::lib=$INSTALL_DIR/local-lib)
echo "test local-lib/lib/perl5"
export PATH=$INSTALL_DIR/bin/:$PATH; eval $(perl -I$INSTALL_DIR/local-lib/lib/perl5 -Mlocal::lib=$INSTALL_DIR/local-lib)
unset HOME
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment