In need of some assistance with PHP & DB2 install:

I'm running RedHat 6.2, DB2 v7.1 personal edition, Apache 1.3.12 and trying to install PHP 4.0.1

I run configure with the --ibm-db2 switch get no errors. When I run make, I get:

/usr/bin/ld: cannot find -ldb2, then script exits with this error.

I have installed PHP4 on same machine before with MySQL support with no problems. But really need to get DB2 support in as well.

Anyone got any ideas?

clh

    17 days later

    I had this exact problem yesterday.

    in /usr/lib/, the libdb2.so is linked to libdb2.so.1, except there is no file in /usr/lib called libdb2.so.1. Do a search on that file from /, then either change the link to it's real location or copy it over. I beleive it's real locaiton is

    /usr/IBMdb2/V7.1/lib

    give that a shot, and if it works, tell me how in the hell to connect to ibm-db2 to w/ php, as I have yet to get connected to the database using the unified ODBC fucntions.

    thanks,
    Barry
    dlux@nsmm.net

      Write a Reply...