cxref-cpp command not found

In this troubleshooting guide we learn how to fix cxref-cpp command not found error message

Introduction

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

cxref-cpp: command not found

or when using sudo you get the following error message

sudo: cxref-cpp: command not found

Solutions to cxref-cpp: command not found

How To Fix cxref-cpp: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu cxref-cpp is provided by cxref package.

cxref is:

A program that takes as input a series of C source files and produces a LaTeX or HTML document containing a cross reference of the files/functions/variables in the program, including documentation taken from suitably formatted source code comments. The documentation is stored in the C source file in specially formatted comments, making it simple to maintain. The cross referencing includes lists of functions called, callers of each function, usage of global variables, header file inclusion, macro definitions and type definitions. Works for ANSI C, including many gcc extensions.

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

sudo apt-get -y install cxref

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

You can also use apt command to install cxref.

sudo apt -y install cxref

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

sudo aptitude install cxref

Summary

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