Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Installing a module with a prerequisite in my own lib directory

by queue (Beadle)
on Feb 03, 2003 at 23:54 UTC ( #232419=perlquestion: print w/ replies, xml ) Need Help??
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

Comment on Installing a module with a prerequisite in my own lib directory
Select or Download Code
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

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://232419]
Approved by sauoq
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (8)
As of 2014-09-19 13:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (138 votes), past polls