in reply to DBI::DB2 module installation failed

It's possible that it all comes down to that second line:

DB2.h:16:67: DBIXS.h: No such file or directory

Where is DBIXS.h ? If the system can find that file then all your problems may well vanish. In any case, the first thing to do is to fix that issue.

Cheeers,
Rob
  • Comment on Re: DBI::DB2 module installation failed

Replies are listed 'Best First'.
Re^2: DBI::DB2 module installation failed
by Anonymous Monk on Feb 16, 2006 at 15:57 UTC
    Agreed, the DBIXS.h missing line is the key portent of doom. You are correct that correct installation of DB2 Client Instance is a key prerequisite; DBI is the other. Did you already install DBI? from source kit? Is DBI source's Include dir on your INCLUDE path? Did DBI pass it's "make test"? What platform and compiler?

    You have to use the same compiler Perl itself was built with to build DBI and DBD::* -- they're C-source extensions. Remember that since the DBI and DBD::whatever are extension modules, they need to be built with the exact same C compiler & settings & library as your Perl was built. (For DBD modules the precise match is more critical than for many source modules.) This often requires building all of Perl to be sure, and using the Perl you built to make-make the DBI and DBD. Sometimes dumping the config settings can sometimes be sufficient, but general advice from Tim Bunce's website on DBI is to build your own perl from sources before building DBI from sources before building your DBD::whichever from sources.

    -- Bill_N1VUX
    as Anonymous Monk because work browser won't hold cookies, or the firewall is messing with me again.

    Resources