Errors during 'make' of Python 2.2.2 - /usr/local/include a non-system directory?!

Steve Allen allen at clayhill.org
Mon Feb 17 16:35:03 EST 2003


> > WARNING: building of extension "dbm" failed: command 'gcc' failed with
> > exit
> > status 1
> > building 'bsddb' extension
> > WARNING: removing "bsddb" since importing it failed
> > 
> I don't know the answer to this one, I'm afriad. The only thing I can
> suggest is looking to see whether you have the BSD DB libraries
> installed on your system. If you don't, I believe you can download them
> from Sleepycat Software: http://www.sleepycat.com/

After several frustrating attempts to locate "dbm" itself (which
seemed like it should be the right solution), I ended up

1. editing setup.py to comment out the lines involving "dbm/ndbm".

2. downloading gdbm from ftp.gnu.org and installing that

3. make clean; make in Python and installing that

running 'make test' says that there is no 'dbm', but the test_gdbm
module passes. I tend to like gnu stuff because you can compile it
yourself, etc.

That being said, I'm not sure how to invoke the gdbm: I'm just now
returning to python after a few years off.

Steve Allen
Clay Hill Associates, Inc.




More information about the Python-list mailing list