Click to See Complete Forum and Search --> : Berkeley DB 3 configuration with PHP 4


Anon
12-31-2000, 04:40 AM
hey...
i've got Berkeley DB 3.1 installed on my box. I want to use the DB functions from my PHP scripts... I've got PHP 4.0.3pl1. When i configure PHP with the option --with-db3=/usr/local/BerkeleyDB.3.1 along with other options, it configures, but during make it fails. I checked the debug.log file and I've found the problem. It tries to link with the 'resolv' library twice and the script is linking once without any lib name... (.... -l -lresolv -l<somethingelse> -lresolv)... got it? ... i know its confusing... but the problem is such...

can someone help??

Anon
12-31-2000, 09:24 PM
The configuration of php was changed somewhere around version 4.0.3 and now you need to add a --with-db switch if using dbm libraries.