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

I am trying to install Graph.pm onto Windows XP using ...

perl makefile.pl

When I run that, I get the following:

C:\Perl\site\lib\Graph-0.80>perl makefile.pl
Checking if your kit is complete...
Looks good

Error: Unable to locate installed Perl libraries or Perl source code.

It is recommended that you install perl in a standard location before building extensions. Some precompiled versions of perl do not contain these header files, so you cannot build extensions. In such a case, please build and install your perl from a fresh perl distribution. It usually solves this kind of problem.


(You get this message, because MakeMaker could not find "C:\p4view\Apps\ActivePerl\MSI\data\ActivePerl\Perl\lib\CORE\perl.h")
I have run Perl -V and (amongst other things) I can see the line
Linker and Libraries:
ld='link', ldflags ='-nologo -nodefaultlib -debug -opt:ref,icf -
libpath:"C:\p4view\Apps\ActivePerl\MSI\data\ActivePerl\Perl\lib\CORE" -machine:x86'
I am now stuck.

Replies are listed 'Best First'.
Re: Win XP perl makefile.pl
by ww (Archbishop) on Nov 02, 2006 at 20:49 UTC
    You say perl -V returns
    libpath:"C:\p4view\Apps\ActivePerl\MSI\data\ActivePerl\Perl\lib\CORE" -machine:x86'

    What does the content of that directory look like? (Have you checked?)

    Contents should be something like this, I think:

    10/02/2006  09:27 AM    <DIR>          .
    10/02/2006  09:27 AM    <DIR>          ..
    10/02/2006  09:27 AM    <DIR>          arpa
    07/09/2003  10:10 PM             3,131 av.h
    08/29/2006  11:36 AM             1,316 BuildInfo.h
    07/09/2003  10:10 PM             2,280 cc_runtime.h
    10/02/2006  09:28 AM           140,057 config.h
    09/21/2005  08:32 AM            18,992 cop.h
    01/02/2006  09:42 AM             8,202 cv.h
    05/25/2000  12:12 AM             1,294 dirent.h
    08/07/2006  02:00 PM             5,983 dosish.h
    02/07/2006  07:50 PM           154,597 embed.h
    
    ...etc.

    Another question: Did you deliberately install ActiveState's perl to something other than its default path? In fact, that libpath (esp the p4view\apps section) is something that to me looks suspect (NOT "impossible" but damned odd!) in light of your quoted makefile command line,

    C:\Perl\site\lib\Graph-0.80>perl makefile.pl

    HTH

Re: Win XP perl makefile.pl
by hj4jc (Beadle) on Nov 02, 2006 at 21:54 UTC
Re: Win XP perl makefile.pl
by chorny (Scribe) on Nov 02, 2006 at 22:45 UTC
    Which version of perl do you have? I assume it is broken (or broken install). If you can - download latest perl from ActiveState and reinstall.

    Created ppm of last version of Graph.pm. Download http://chorny.net/perlmod/Graph-0.80.zip, unpack and run 'install.bat'.