I was able to install the DBD::DB2 driver using ActiveState configuration. I gave up
on Cygwin as it simply would not compile. However, when I try to run a sample script,
the code dies verifying a dependancy on a macro SQL_PARAM_INPUT_OUTPUT. Below is the
perl error message.
perl dbitest.pl
resulted in:
Your vendor has not defined DBD::DB2::Constants macro SQL_PARAM_INPUT_OUTPUT at
D:/Perl/site/lib/DBD/DB2.pm line 40
Compilation failed in require at dbitest.pl line 11.
BEGIN failed--compilation aborted at dbitest.pl line 11.
I have the DB2 UDB client installed. I am running ActiveState perl version 5.8.0 for
windows.
I installed DBI v1.33 and DBD::DB2 v.76
My OS is Win2K
Sample script exectued
#!/usr/bin/perl
BEGIN
{
push(@INC, "/d/Perl/site/lib/DBD/DB2");
}
use DBI;
use DBD::DB2::Constants;
use DBD::DB2 qw($attrib_int $attrib_char $attrib_float
$attrib_date $attrib_ts); #THIS IS THE OFFENDING
LINE!
# an extraneous example of the syntax for creating a new
# attribute type
$attrib_dec = { %$attrib_int,
'db2_type' => SQL_DECIMAL,
'SCALE' => 2,
'PRECISION' => 31 };
exit(0);
Any help in debugging this would be great.