cdbmake command not found

In this troubleshooting guide we learn how to fix cdbmake command not found error message

Introduction

When you run more command in linux terminal / console, you get the following error message

cdbmake: command not found

or when using sudo you get the following error message

sudo: cdbmake: command not found

Solutions to cdbmake: command not found

How To Fix cdbmake: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu cdbmake is provided by freecdb package.

freecdb is:

freecdb is a fast, reliable, simple package for creating and reading constant databases. Its database structure provides several features:

  • Fast lookups: A successful lookup in a large database normally takes just two disk accesses. An unsuccessful lookup takes only one.
  • Low overhead: A database uses 2048 bytes, plus 24 bytes per record, plus the space for keys and data.
  • No random limits: cdb can handle any database up to 4 gigabytes. There are no other restrictions; records don’t even have to fit into memory. Databases are stored in a machine-independent format.
  • Fast atomic database replacement: cdbmake can rewrite an entire database two orders of magnitude faster than other hashing packages.
  • Fast database dumps: cdbdump prints the contents of a database in cdbmake-compatible format.

This package is derived from the cdb package, and uses the original cdb library. See http://cr.yp.to/cdb.html

To fix this problem, we can install more using the command below.

sudo apt-get -y install freecdb

This command might take some time to finish depending on your machine internet connection.

You can also use apt command to install freecdb.

sudo apt -y install freecdb

Or if you have aptitude installed you can use the following command.

sudo aptitude install freecdb

Summary

In this tutorial we learn how to fix cdbmake command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.