in reply to Re: dbd:db2 module
in thread dbd:db2 module

I ran your command and it is using DBI. Now I am getting this error after setting the DB2_HOME env.

export DB2_HOME=/opt/IBM/db2/V9.7

perl Makefile.PL

hello1hello1 (echo commands added)

Configuring DBD::DB2... Remember to actually read the README and CAVEATS files!

Using DB2 in "/opt/IBM/db2/V9.7" System: perl5.008008 DBI1.616 aix akash79 3 5 00011a85d600 aix-thread-multi dl_aix.xs Compiler: cc_r -O -D_ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX_SOURCE -qmaxmem=-1 -qnoansialias -DUSE_NATIVE_DLOPEN -DNEED_PTHREAD_INIT -q32 -D_LARGE_FILES -qlonglong Includes: -I"/opt/IBM/db2/V9.7/include" -I"/usr/opt/perl5/lib/site_perl/5.8.8/aix-thread-multi/auto/DBI" -I"/usr/opt/perl5/lib/5.8.8/aix-thread-multi/auto/DBI" -I"/usr/opt/perl5/lib/site_perl/5.8.8/aix-thread-multi/auto/DBI" Libraries: -L/opt/IBM/db2/V9.7/lib64 -ldb2

Undefined subroutine &main::WriteMakefile called at Makefile.PL line 164.

So here is line 164 in Makefile.pl

WriteMakefile(%opts);

So what do I do?

Replies are listed 'Best First'.
Re^3: dbd:db2 module
by Tanktalus (Canon) on Apr 29, 2011 at 13:15 UTC

    Does line 8 look like this?

    use ExtUtils::MakeMaker qw(&WriteMakefile $Verbose );
    It should - but you may have touched it in some way while trying to get this all to work. If it doesn't, I'd suggest starting over - extract your DBD::DB2 tarball into a new directory, keep DB2_HOME set, and try there. If this still doesn't work, then I'd wonder about your ExtUtils::MakeMaker - though I'd hope that the above use line would have died if ExtUtils::MakeMaker was corrupt and/or the WriteMakefile function was not listed properly.