http://qs1969.pair.com?node_id=813313


in reply to MakeMaker custom directory

P- you can change the target of the make install by running,for example, somewhere in your home dir:
$perl Makefile.PL INSTALL_BASE=~/perl/xlib $make $make test $make install . . . perl -I~/perl/xlib/lib script

where the module install will start at ~/perl/xlib/lib/...

so, you need to pre-pend this directory to @INC using the -I on the command line or use lib DIR;

Please consult the document for module ExtUtils::MakeMaker

-c