cbc command not found

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

Introduction

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

cbc: command not found

or when using sudo you get the following error message

sudo: cbc: command not found

Solutions to cbc: command not found

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

In Ubuntu cbc is provided by coinor-cbc package.

coinor-cbc is:

Cbc (Coin-or branch and cut) is an open-source mixed integer programming solver written in C++. It can be used as a callable library or as a stand-alone executable.

This package contains cbc executable.

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

sudo apt-get -y install coinor-cbc

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

You can also use apt command to install coinor-cbc.

sudo apt -y install coinor-cbc

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

sudo aptitude install coinor-cbc

Summary

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