cococpp command not found

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

Introduction

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

cococpp: command not found

or when using sudo you get the following error message

sudo: cococpp: command not found

Solutions to cococpp: command not found

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

In Ubuntu cococpp is provided by coco-cpp package.

coco-cpp is:

Coco/R is a compiler generator, which takes an attributed grammar of a source language and generates a scanner and a parser for this language. The scanner works as a deterministic finite automaton. The parser uses recursive descent. LL(1) conflicts can be resolved by a multi-symbol lookahead or by semantic checks. Thus the class of accepted grammars is LL(k) for an arbitrary k.

To start Coco call cococpp, which is a shell script in /usr/bin.

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

sudo apt-get -y install coco-cpp

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

You can also use apt command to install coco-cpp.

sudo apt -y install coco-cpp

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

sudo aptitude install coco-cpp

Summary

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