Click to See Complete Forum and Search --> : PHP4 & IBM DB2 install problem


Anon
08-07-2000, 04:43 PM
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

Anon
08-24-2000, 05:42 PM
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