note 14092 modified in function.dbmopen by irc-html

From: Date: Sat, 19 Jan 2002 23:22:04 +0000
Subject: note 14092 modified in function.dbmopen by irc-html
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-25533@lists.php.net to get a copy of this message
Want to use dbmopen() to open an NDBM DB under solaris? Want to have GDBM support as well? Tough; you can't. You *can* use dba_open(), but you need to jump through a couple of hoops first: First, you need to re-roll libgdbm so that DBM/NDBM compatiblity are removed. For GDBM-1.7.3, change this line in the Makefile: OBJS = $(DBM_OF) $(NDBM_OF) $(GDBM_OF) to this: OBJS = $(GDBM_OF) Once that's installed, re-run ./configure --with-gdbm=/<prefix> --with-ndbm --with-db=/<prefix> <other args>, where <prefix> is the directory which holds the include/ directory containing the associated header files. make, make install, adjust your scripts to use dba_open() with the ndbm handler. Voila! --was-- Want to use dbmopen() to open an NDBM DB under solaris? Want to have GDBM support as well? Tough; you can't. You *can* use dba_open(), but you need to jump through a couple of hoops first: <br> First, you need to re-roll libgdbm so that DBM/NDBM compatiblity are removed. For GDBM-1.7.3, change this line in the Makefile: <br> OBJS = $(DBM_OF) $(NDBM_OF) $(GDBM_OF) <br> to this: <br> OBJS = $(GDBM_OF) <br> Once that's installed, re-run ./configure --with-gdbm=/<prefix> --with-ndbm --with-db=/<prefix> <other args>, where <prefix> is the directory which holds the include/ directory containing the associated header files. make, make install, adjust your scripts to use dba_open() with the ndbm handler. Voila! http://www.php.net/manual/en/function.dbmopen.php

« previous php.notes (#25533) next »