in reply to Trying to get DBD::SQLite to compile with local version of DBI library

Both of the following commands will show that perl doesn't look in /home/talbert/lib:

perl -le'print for @INC'
perl -V (uppercase V, list near the bottom under "@INC:")

Add export PERL5LIB=/home/talbert/lib to your login script and login back in. See perlrun (for PERL5VAL), @INC and lib.


Note that lib/perl5 is usually used as the installation directory, not just lib. Modules can be installed there using

perl Makefile.PL PREFIX=~ LIB=~/lib/perl5
or (in newer ExtUtils::MakeMaker)
perl Makefile.PL INSTALL_BASE=~

Replies are listed 'Best First'.
Re^2: Trying to get DBD::SQLite to compile with local version of DBI library
by supercraig (Initiate) on Jun 23, 2009 at 21:14 UTC
    Thank you for the response, it makes much more sense now. I was able to make DBD::SQLite with DBI 1.21 like I was hoping to.