ccbuild command not found

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

Introduction

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

ccbuild: command not found

or when using sudo you get the following error message

sudo: ccbuild: command not found

Solutions to ccbuild: command not found

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

In Ubuntu ccbuild is provided by ccbuild package.

ccbuild is:

Scan the source for main functions and includes. When the file contains a main function it will compile all the files next to that file’s includes and link them into a program.

This makes it possible to build entire programs with minimal configuration. Linker and compiler options can be added and will be automatically divided over the compiler and linker.

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

sudo apt-get -y install ccbuild

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

You can also use apt command to install ccbuild.

sudo apt -y install ccbuild

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

sudo aptitude install ccbuild

Summary

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