[Tutor] RE: Shelve Help!
Mon, 21 Aug 2000 13:43:33 -0700 (PDT)
On Mon, 21 Aug 2000, Catriona Johnston wrote:
> Modules/Setup file to include them. ran make clean and then ./configure and
> then make. However when I ran make I got an error saying that I do not have
> the following file: ndbm.h. I ran a search for this file and located it in
> the following places:
> how do I tell make that the ndbm.h is present at these locations?
You can indicate to the system where those header files are with the
optional parameters "-I/usr/include/db1". Most likely, you'll also need
to point to the system where to find the corresponding library files too.
I'll have to take a guess and say that it's "-L/usr/lib/db1".
Search through Modules/Setup to:
dbm dbmmodule.c # dbm(3) may require -lndbm or similar
and add those '-I' and '-L' options in there. I'll also follow their
recommendation, and add the '-lndbm' in there too.
dbm dbmmodule -I/usr/include/db1 -L/usr/lib/db1 -lndbm
Hopefully, doing a 'make' and 'make install' should be painless then.
Analogously, when I added gdbm support to my Python installation, I
changed my gdbm line to:
gdbm gdbmmodule.c -I/usr/local/include -L/usr/local/lib -lgdbm
I hope this helps!