Perl Module question
This might not fit in this forum, if not I aplogize in advance.
I'm trying to install a Perl module to my /home directory.
You have the classic install example.
perl Makefile.PL PREFIX=/path/to/where/you/want/it
make
make install
And then told to
use lib /path/to/where/you/want/it
to use the module.
So if I run
perl Makefile.PL PREFIX=/home/stash/lib
make
make install
I would expect the module to be at /home/stash/lib/TheModule.pm and have a "use lib /home/stash/lib"
But often it ends up at someplace like
/home/stash/lib/lib/perl5/site_perl/5.8.5/Config/IniFiles.pm
So then I would change PREFIX to /home/stash to get rid of the additional lib in the path but..
If I add a new module to a project, I dont want to have to add a use lib to every Perl file that will use it. I would like everything installed without the additional directories (perl5/site_perl...). Is there any way to do this? Thanks in advance
|