C.2 Get the SourceDo not use the version of db that was distributed on the Net2 tape. It is riddled with bugs. Do get the latest distribution of db via anonymous FTP from ftp.CS.Berkeley.EDU . The file ucb/4bsd/db.tar.Z is a symbolic link that always points to the latest distribution. That file is a compressed, tar (1) archive and can be extracted like this:
% zcat db.tar.Z | tar xvf - The result will be creation of a new directory with the name db . something , where the something is the latest version number. To compile the database library, you need to change into that directory. A listing of its contents might look like this:
Makefile.inc changelog include test PORT db man README docs mpool btree hash recno
Inside the
db
distribution directory is a subdirectory
called
%
Always read the
% If you elected to include support for both NDBM and NEWDB in Section 33.1, "Enable at Compile Time" , you will need to make Makefile writable and edit it. (If you selected only NEWDB, you should skip this step.) This is necessary because your system's ndbm (3) will confict with the internal ndbm of db and cause sendmail to fail in spectacular ways.
Make
Makefile
writable, edit it, and remove all references
to
% |
|