in reply to Need help installing Mod DBD/DB2 on windows

I installed DBD::DB2 on a WinXP machine. It does not have DB2 (client nor server) installed, so it should not work. The install appears successful, but ppm files DBD-DB2 lists no files, so I don't think it is:
C:\>ppm install DBD-DB2 Downloading ActiveState Package Repository packlist...not modified Downloading DBD-DB2-1.7.1...done Unpacking DBD-DB2-1.7.1...done Updating files in site area...done C:\>ppm files DBD-DB2 C:\> C:\>perl -we "use DBD::DB2" Can't locate DBD/DB2.pm in @INC (@INC contains: C:/Perl/site/lib C:/Perl/lib .) at -e line 1. BEGIN failed--compilation aborted at -e line 1.
What does ppm files DBD-DB2 output on your system?
--
No matter how great and destructive your problems may seem now, remember, you've probably only seen the tip of them. [1]

Replies are listed 'Best First'.
Re^2: Need help installing Mod DBD/DB2 on windows
by Anonymous Monk on Apr 03, 2009 at 07:03 UTC
    I found the problem, its a bug with the tarball on the repository, the directory inside is called DBD-DB2-1.71 instead of blib
    http://theoryx5.uwinnipeg.ca/ppms/DBD-DB2.ppd
    http://theoryx5.uwinnipeg.ca/ppms/x86/DBD-DB2.tar.gz
    Create DBD-DB2.ppd
    <SOFTPKG NAME="DBD-DB2" VERSION="1,7,1,0"> <TITLE>DBD-DB2</TITLE> <ABSTRACT>Perl driver for IBM DB2 Universal Database</ABSTRACT> <AUTHOR>DB2 Perl (db2perl@ca.ibm.com)</AUTHOR> <IMPLEMENTATION> <OS NAME="MSWin32" /> <ARCHITECTURE NAME="MSWin32-x86-multi-thread-5.8" /> <CODEBASE HREF="DBD-DB2.tar.gz" /> </IMPLEMENTATION> </SOFTPKG>
    download and fix tarball
    wget -c http://theoryx5.uwinnipeg.ca/ppms/x86/DBD-DB2.tar.gz ptar -zxvf DBD-DB2.tar.gz del DBD-DB2.tar.gz rename DBD-DB2-1.71 blib ptar -zcvf DBD-DB2.tar.gz blib rmdir /S /Q blib ppm install DBD-DB2.ppd
      Thanks for spotting this - I've fixed it now in our repository.