Unable to Build Python 3.7.0 "_Dbm" Optional Module

Unable to Build Python 3.7.0 "_Dbm" Optional Module

I've been able to successfully finish building python 3.7.0 but one last optional module keeps slipping through the net! _dbm

What ubuntu or debian package is required for this?

The necessary bits to build these optional modules were not found:
_dbm

I've been able to include in the build _gdbm but not _dbm, why? I have installed libgdbm-dev (which solved _gdbm) but can't definitively find any other *dbm-dev package that is relevant for _dbm.

I would really appreciate a hand if anyone knows what I'm missing!

Environment:

  • Ubuntu 18.04
  • gcc8.2
  • python3.7.0 source
  • using configure --enable-optimizations --with-lto

1 Answer

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.

5

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Robert Thorne
Author

Robert Thorne

Robert Thorne covers electric vehicle innovations, autonomous driving systems, global mobility trends, and automotive engineering developments.