I'm trying to install Spreadsheet::WriteExcel.
This package has prerequisites of
File::Spec and File::Temp.
So I download the following files...
File-Spec-0.82.tar.gz
File-Temp-0.12.tar.gz
Spreadsheet-WriteExcel-0.40.tar.gz
and do a gunzip and tar xf on all three.

For purposes of testing (so I don't have to bother
the sysadmins) I create a directory called perllib in
my home directory and start with File::Spec.
I do..
1. perl Makefile.PL LIB=~/perllib
2. make test
3. make install
everything is fine to this point. (except for complaints
about trying to install man pages in the real perl
directories)
Then I go to install File::Temp (which needs File::Spec).
I do..
1. perl Makefile.PL LIB=~/perllib
but I get a warning...
Warning: prerequisite File::Spec 0.8 not found at (eval 1) line 220.
Writing Makefile for File::Temp
so I continue with...
2. make test
but I get multiple errors from perl stating "File::Spec version 0.8 required"

So the question is, what do I change in the File::Temp
Makefile.PL (listed below) to make it look for File::Spec
in my library directory and not perl's?

contents of File::Temp Makefile.PL

use ExtUtils::MakeMaker;

# Write the makefile
WriteMakefile(
'NAME' => 'File::Temp',
'VERSION_FROM' => 'Temp.pm', # finds $VERSION

'PREREQ_PM' => {
File::Spec => 0.8,
Fcntl => 1.03,
File::Path => undef,
},
'dist' => { COMPRESS => "gzip -9f" },
($] >= 5.005 ? ## Add these new keywords supported since 5.005
(ABSTRACT_FROM => 'Temp.pm',
AUTHOR => 'Tim Jenness <t.jenness@jach.hawaii.edu>') : ()),
);


In reply to make install problems by mifflin

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.