Module Installation Problem: Prerequisite

S

Sean

I don't have root privilege and I want to install a module under my home
directory.

I met a problem when I try to install a perl module in the usr direcotry
under my home directory (i.e., "~/usr"). What I did and the error
message is listed as follows.
--------------------------------------Warning: prerequisite Heap 0 not found.
Writing Makefile for Graph
---------------------------------------

I tried to download module Heap from CPAN, which I successfully
installed in ~/usr. But the warning message is still there.
What step have I missed?

Thanks a lot,
Sean


And here is the Makefile.PL file
-----------------------------------------
#Makefile.PL

use ExtUtils::MakeMaker;

require 5.005;

use Getopt::Long;

my $renum;

GetOptions('renumber' => \$renum);

do 'util/renum.pl' if $renum;

WriteMakefile(
NAME => 'Graph',
VERSION_FROM => 'lib/Graph.pm',
PREREQ_PM =>
{
'Heap' => 0,
'List::Util' => 0,
'Math::Complex' => 0,
'Test::More' => 0,
},
);

# Some Debian distributions have a broken List::Util (see rt.cpan.org #9568)
eval 'require Scalar::Util; import Scalar::Util qw(weaken)';
if ($@) {
die <<__EOF__;
$@
You do not have Scalar::Util::weaken, cannot continue, aborting.
__EOF__
}
 
U

usenet

Sean said:
I don't have root privilege and I want to install a module under my home
directory.

You're missing an important bit... see:

perldoc -q directory
"How do I keep my own module/library directory?"
 
S

Sean

I used this Makefile.PL-- see the line of {use lib
"$ENV{HOME}/usr/Heap-0.71";}
but still the same warning message.
Warning: prerequisite Heap 0 not found.
Writing Makefile for Graph

--------------------------------------
use ExtUtils::MakeMaker;

require 5.005;

use Getopt::Long;

use lib "$ENV{HOME}/usr/Heap-0.71";

my $renum;

GetOptions('renumber' => \$renum);
do 'util/renum.pl' if $renum;
#unshift (@INC, "$ENV{HOME}/usr/Heap-0.71");
WriteMakefile(
NAME => 'Graph',
VERSION_FROM => 'lib/Graph.pm',
PREREQ_PM =>
{
'Heap' => 0,
'List::Util' => 0,
'Math::Complex' => 0,
'Test::More' => 0,
},
);

# Some Debian distributions have a broken List::Util (see rt.cpan.org #9568)
eval 'require Scalar::Util; import Scalar::Util qw(weaken)';
if ($@) {
die <<__EOF__;
$@
You do not have Scalar::Util::weaken, cannot continue, aborting.
__EOF__
}
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top