Hi Paul, you wrote:

> Did all the prerequisites and every thing went fine until 
> installing the DB2
> module.
> It's barking about "No such file  or directory" for three 
> objects on the
> make command.

Maybe you missed a prerequisite, perhaps....  The files it is complaining
about are part of the DB2 development kit.

A couple of suggestions come to mind.  First make sure the account you 
are using the build DBD:DB2 is configured to access the database.  Note,
this
means if you su to root (possibly even if you use sudo), then root must be
able 
to see the database.  Whatever the account you use, it should have an sqllib

directory in the account home directory (usually this is a container for a
bunch 
of links to the INSTANCE account home directory sqllib tree, which is often 
links to the actual installed area: typically something like
/usr/IBMdb2/V7.2/...).
There should also be an environment configured with the DB2INSTANCE and
DB2PATH 
variables set and maybe some other DB2... variables, depends on what's
installed.  
There is are IBM-supplied scripts to set up the environments correctly: 

   . INSTHOME/sqllib/db2profile    (for Bash, Bourne or Korn shell)
   source INSTHOME/sqllib/db2cshrc (for C shell)

Most of this is documented in extremely tedious detail in the "DB2 Quick
Beginnings
for Linux" manual that IBM supplies.  You may want to browse around there
and see
what I've forgotten. 

If the account appears to be set up to access the database and actually
build
and link DB2 executables, then it is possible that the development libraries

were not installed, so the compiler can't see the necessary ".h" files
because
they are in fact not there.  If that proves to be the case, see your
friendly 
system admin to correct that omission.

Hope this is helpful.

Stephen Keller

 

Reply via email to