Unable to build python 3.7.0 "_dbm" optional module

Solution 1:

I was able to satisfy the dbm requirement via this module

sudo apt install libgdbm-compat-dev

It looks like the older "dbm" files are moved to "gbdm-compat" package.