http://www.perlmonks.org?node_id=232419

queue has asked for the wisdom of the Perl Monks concerning the following question:

I'm trying to install XML::RSS into my own directory.

I type:
perl Makefile.PL PREFIX=/home/kevin/perl/lib
I get:
Warning: prerequisite Test::Manifest 0.9 not found.

So I install Test::Manifest (version 0.91, the only version I could find) with:
perl Makefile.PL PREFIX=/home/kevin/perl/lib make make test make install

And everything works fine. I try to create the makefile for XML::RSS again, and I get the same warning about it not being able to find Test::Manifest.

I've tried searching the site, but the closest thing I can find are directions on how to install something into my own directory, which I've been able to do fine. How can I make it look in my directory for the prerequisite?

-Queue

Replies are listed 'Best First'.
Re: Installing a module with a prerequisite in my own lib directory
by pfaut (Priest) on Feb 03, 2003 at 23:59 UTC

    You need to tell perl about your private library directory. You should probably put something like export PERL5LIB=/home/kevin/perl/lib in your .profile (or the equivalent command/startup file for your shell).

    --- print map { my ($m)=1<<hex($_)&11?' ':''; $m.=substr('AHJPacehklnorstu',hex($_),1) } split //,'2fde0abe76c36c914586c';
      That did the trick. Thanks much.

      -Queue
Re: Installing a module with a prerequisite in my own lib directory
by sauoq (Abbot) on Feb 04, 2003 at 00:01 UTC

    Try:

    perl -I/home/kevin/perl/lib Makefile.PL PREFIX=/home/kevin/perl/lib

    -sauoq
    "My two cents aren't worth a dime.";
    
      That let it create the make file, but it failed the make test. Setting PERL5LIB did the trick, though. Thanks for the help.

      -Queue