local module path (PREFIX) not used in tests

local module path (PREFIX) not used in tests

am 11.11.2002 14:22:11 von Jens Harms

Hi,
i want to install dbd-mysql-2.1020 on unix, but i'm not root.

i tried this:
perl Makefile.PL PREFIX=$HOME/src/perl/modules
make
make test

the output:

t/insertid..........Can't locate DBI.pm in @INC (@INC contains: blib/arch
blib/lib /usr/libdata/perl/5.00503/mach /usr/libdata/perl/5.00503
/usr/local/lib/perl5/site_perl/5.005/i386-freebsd
/usr/local/lib/perl5/site_perl/5.005 . /usr/libdata/perl/5.00503/mach
/usr/libdata/perl/5.00503
/usr/local/lib/perl5/site_perl/5.005/i386-freebsd
/usr/local/lib/perl5/site_perl/5.005 . /usr/libdata/perl/5.00503/mach
/usr/libdata/perl/5.00503) at t/insertid.t line 4.
BEGIN failed--compilation aborted at t/insertid.t line 4.
dubious


i think Makefile.PL should prepend the following code to any test program:

unshift( @INC, $PREFIX );
( eg. unshift(@INC, "/home/jojo/localperlmodules" )


Jens Harms ( jens.harms@informatik.uni-oldenburg.de )



------------------------------------------------------------ ---------
Please check "http://www.mysql.com/Manual_chapter/manual_toc.html" before
posting. To request this thread, e-mail msql-mysql-modules-thread1969@lists.mysql.com

To unsubscribe, send a message to the address shown in the
List-Unsubscribe header of this message. If you cannot see it,
e-mail msql-mysql-modules-unsubscribe@lists.mysql.com instead.