Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Activestate perl installing mods 1

Status
Not open for further replies.

timgerr

IS-IT--Management
Jan 22, 2004
364
US
I am having troubles installing a mod with cpan. when I use c:\cpan> install Win32::API I get an error that the perl (Error: Unable to locate installed Perl libraries or Perl source code.)
I am getting this error when I try to use Make.pl.

Windows XP
ActivePerl 5.8.4 build 810
Here is the full log information:
cpan> install Win32::API
Running install for module Win32::API
Running make for A/AC/ACALPINI/Win32-API-0.41.tar.gz
Fetching with LWP:
ftp://archive.progeny.com/CPAN/authors/id/A/AC/ACALPINI/Win32-API-0.41.tar.gz
CPAN: Digest::MD5 loaded ok
Fetching with LWP:
ftp://archive.progeny.com/CPAN/authors/id/A/AC/ACALPINI/CHECKSUMS
Checksum for \.cpan\sources\authors\id\A\AC\ACALPINI\Win32-API-0.41.tar.gz ok
Scanning cache \.cpan\build for sizes
Win32-API-0.41/
Win32-API-0.41/API.h
Win32-API-0.41/API.pm
Win32-API-0.41/API.xs
Win32-API-0.41/API_test_dll/
Win32-API-0.41/API_test_dll/API_test.cpp
Win32-API-0.41/API_test_dll/API_test.def
Win32-API-0.41/API_test_dll/API_test.dsp
Win32-API-0.41/API_test_dll/API_test.dsw
Win32-API-0.41/API_test_dll/API_test.h
Win32-API-0.41/API_test_dll/API_test.ncb
Win32-API-0.41/API_test_dll/API_test.opt
Win32-API-0.41/API_test_dll/API_test.plg
Win32-API-0.41/API_test_dll/Makefile
Win32-API-0.41/API_test_dll/StdAfx.cpp
Win32-API-0.41/API_test_dll/StdAfx.h
Win32-API-0.41/Callback/
Win32-API-0.41/Callback/Callback.xs
Win32-API-0.41/Callback/Makefile.PL
Win32-API-0.41/Callback/t/
Win32-API-0.41/Callback/t/02_Callback.t
Win32-API-0.41/Callback.pm
Win32-API-0.41/Makefile.PL
Win32-API-0.41/MANIFEST
Win32-API-0.41/README
Win32-API-0.41/README.txt
Win32-API-0.41/samples/
Win32-API-0.41/samples/callback1.pl
Win32-API-0.41/samples/callback2.pl
Win32-API-0.41/samples/callback3.pl
Win32-API-0.41/samples/cdinfo.pl
Win32-API-0.41/samples/chres.pl
Win32-API-0.41/samples/ejectcd.pl
Win32-API-0.41/samples/GetCursorPos.pl
Win32-API-0.41/samples/hideconsole.pl
Win32-API-0.41/samples/kernel32.html
Win32-API-0.41/samples/kernel32.pl
Win32-API-0.41/samples/locales.pl
Win32-API-0.41/samples/resolution.pl
Win32-API-0.41/samples/rndcolors.pl
Win32-API-0.41/samples/Win32/
Win32-API-0.41/samples/Win32/kernel32.pm
Win32-API-0.41/samples/wininfo.pl
Win32-API-0.41/Struct.pm
Win32-API-0.41/t/
Win32-API-0.41/t/00_API.t
Win32-API-0.41/t/01_Struct.t
Win32-API-0.41/Type.pm
Win32-API-0.41/TYPEMAP

CPAN.pm: Going to build A/AC/ACALPINI/Win32-API-0.41.tar.gz

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:\TEMP\perl-----------
---------------------please-run-the-install-script------------------------------
--\lib\CORE\perl.h")
Running make test
Make had some problems, maybe interrupted? Won't test
Running make install
Make had some problems, maybe interrupted? Won't install



 
I dodnt' like cpan myself and find the following easier:

Use Activstates PPM under Perl\bin\ to install any mods. Open the command prompt and change directories to Perl\bin\, then type ppm and it will open the Programmer's Package Module, there you can search for, download or install mods.

hope that helps.

Paul
 
Thanks for the advice but the mods that I want are not in ActiveState Repositories. They are on CPAN. I have downloaded the mod that I want (Win32::API) and tried to compile them myself. I get the same error.

Timgerr
 
Your welcome.


Hmmm? I just ran a search and it came up. Perhaps not the version your looking for.
 
Thanks you are right I was able to get it with PPM.

Timgerr
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top