Issue 4840: Compile dbm in Ubuntu (original) (raw)

I tried and failed in compile python 3.0 in ubuntu 8.10. Then I found the scripts in setup.py use "gdbm/ndbm.h" while in ubuntu 8.10 it should be gdbm-ndbm.h. So I made the following change which make the compiling ok:

setup.py

787c787 < and find_file("gdbm/ndbm.h", inc_dirs, []) is not None):

              and find_file("gdbm-ndbm.h", inc_dirs, []) is not None):

790c790 < libraries = ['gdbm'] ) )


                                   libraries = ['gdbm',

'gdbm_compat'] ) )

Modules/_dbmodule.c

22c22 < #include <gdbm/ndbm.h>

#include <gdbm-ndbm.h>