rtags-rc command not found

In this troubleshooting guide we learn how to fix rtags-rc command not found error message

Introduction

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

rtags-rc: command not found

or when using sudo you get the following error message

sudo: rtags-rc: command not found

Solutions to rtags-rc: command not found

How To Fix rtags-rc: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu rtags-rc is provided by rtags package.

rtags is:

RTags is a client/server application that indexes C/C++ code and keeps a persistent file-based database of references, declarations, definitions, symbolnames etc. There’s also limited support for ObjC/ObjC++. It allows you to find symbols by name (including nested class and namespace scope). Most importantly it gives you proper follow-symbol and find-references support. It also have neat little things like rename-symbol, integration with clang’s “fixits” (https://clang.llvm.org/diagnostics.html).

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

sudo apt-get -y install rtags

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

You can also use apt command to install rtags.

sudo apt -y install rtags

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

sudo aptitude install rtags

Summary

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