Hello,
Phase 1 of installing the Perl DBI module ended in utter failure with PPM's inability to converse with my proxy server and yes I had the HTTP_proxy environment variable set per the FAQ.
Phase 2 involved downloading the DBI gz file, unzipping it into a temp directory, running perl makefile.pl and then running nmake.
Perl Makefile.pl says that I have the MS Visual C++ compiler installed. Well I don't - I have OpenWatcom installed. The Makefile says that I don't have my LIB and INCLUDE environment variables sets. A simple SET command shows that I do have the INCLUDE correctly set and LIB is not needed according to the OpenWatcom documentation. Anyway, makefile.pl appears to terminate normally.
Next I run nmake which gives me the following output:
C:\jptemp\DBI-1.48>nmake (the one that comes with OpenWatcom)
Open Watcom C/C++ NMAKE Clone for 386 Version 1.3
Portions Copyright (c) 1995-2002 Sybase, Inc. All Rights Reserved.
Source code is available under the Sybase Open Watcom Public License.
See http://www.openwatcom.org/ for details.
makefile(450): Error(E21): Extension(s) (.PHONY) not defined
makefile(450): Error(E09): Ignoring out of place Path Specifier
makefile(450): Error(E09): Ignoring out of place Path Specifier
makefile(450): Error(E09): Ignoring out of place Path Specifier
makefile(450): Error(E09): Ignoring out of place Path Specifier
makefile(450): Error(E09): Ignoring out of place Path Specifier
makefile(450): Error(E09): Ignoring out of place Path Specifier
makefile(456): Error(E23): Extensions reversed in implicit rule
makefile(462): Error(E23): Extensions reversed in implicit rule
makefile(498): Warning(W18): Unrecognized or out of place character '='
makefile(501): Warning(W18): Unrecognized or out of place character '='
makefile(504): Warning(W18): Unrecognized or out of place character '='
makefile(525): Warning(W18): Unrecognized or out of place character '='
makefile(535): Warning(W18): Unrecognized or out of place character '='
makefile(576): Warning(W18): Unrecognized or out of place character '='
makefile(584): Warning(W18): Unrecognized or out of place character '='
makefile(597): Warning(W18): Unrecognized or out of place character '='
makefile(611): Warning(W18): Unrecognized or out of place character '='
makefile(1061): Warning(W18): Unrecognized or out of place character '='
makefile(1061): Warning(W18): Unrecognized or out of place character '='
Error(E02): Make execution terminated
Okay so that failed. I now put the MS nmake in the DBI directory and set the LIB variable. Now Makefile.pl runs without error. I run nmake which seems to go well until the following:
Fatal error: Nothing to do!
NMAKE : fatal error U1077: 'C:\WINNT\system32\cmd.exe' :
return code '0xff'
Stop.
nmake test yields the same error.
The same happens when I run namke install.
Recklessly forging ahead, I write a small script to test things. Following is the log.
C:\jptemp\DBI-1.48>perl testdbi.pl
Can't locate loadable object for module DBI in @INC (@INC contains: C:/Perl/lib
C:/Perl/site/lib .) at DBI.pm line 254
BEGIN failed--compilation aborted at DBI.pm line 254.
Compilation failed in require at testdbi.pl line 3.
BEGIN failed--compilation aborted at testdbi.pl line 3.
Following is the script code:
#!/usr/bin/perl
use strict; # compiler pragma
use DBI;
print "DB Drivers\n";
print "==========\n";
print join("\n",DBI->available_drivers()),"\n\n";
FYI I am running Perl 5.8.7 under XP.
My question: what the blazes does it take to get a Perl module installed?
Signed Frustrated Perl Newbie.
Retitled by holli from 'Install Module Madness'.