cgreen-debug command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
cgreen-debug: command not found
or when using sudo you get the following error message
sudo: cgreen-debug: command not found
Solutions to cgreen-debug: command not found
How To Fix cgreen-debug: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu cgreen-debug is provided by cgreen1 package.
cgreen1 is:
A modern unit test and mocking framework for C and C++. Cgreen features - fast build, clean code, highly portable - simple auto-discovery of tests - fluent, expressive and readable API - each test runs in isolation to prevent cross-test dependencies - built-in mocking for C, compatible other C++ mocking librarie Provides the Unittest test tool
To fix this problem, we can install more using the command below.
sudo apt-get -y install cgreen1
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install cgreen1.
sudo apt -y install cgreen1
Or if you have aptitude installed you can use the following command.
sudo aptitude install cgreen1
Summary
In this tutorial we learn how to fix cgreen-debug command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.