citnames command not found

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

Introduction

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

citnames: command not found

or when using sudo you get the following error message

sudo: citnames: command not found

Solutions to citnames: command not found

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

In Ubuntu citnames is provided by bear package.

bear is:

Bear records the flags passed to the compiler for each translation unit and stores them in a JSON file. This file can be used by Clang’s tooling interface and programs like clang-check to process a translation unit.

cmake supports the generation of JSON compilation databases out of the box. For any other build system that does not support this, Bear can be used instead to intercept the invocation of the compiler.

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

sudo apt-get -y install bear

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

You can also use apt command to install bear.

sudo apt -y install bear

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

sudo aptitude install bear

Summary

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