ccls command not found
In this troubleshooting guide we learn how to fix ccls command not found error message
Introduction
When you run more command in linux terminal / console, you get the following error message
ccls: command not found
or when using sudo you get the following error message
sudo: ccls: command not found
Solutions to ccls: command not found
How To Fix ccls: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu ccls is provided by ccls package.
ccls is:
This originates from cquery, and is a server implementing Language Server Protocol for C/C++/Objective-C. It supports:
- code completion (with both signature help and snippets)
- definition/references, and other cross references
- cross reference extensions: $ccls/call $ccls/inheritance $ccls/member $ccls/vars …
- formatting
- hierarchies: call (caller/callee) hierarchy, inheritance (base/derived) hierarchy, member hierarchy
- symbol rename
- document symbols and approximate search of workspace symbol
- hover information
- diagnostics and code actions (clang FixIts)
- semantic highlighting and preprocessor skipped regions
- semantic navigation: $ccls/navigate
To fix this problem, we can install more using the command below.
sudo apt-get -y install ccls
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install ccls.
sudo apt -y install ccls
Or if you have aptitude installed you can use the following command.
sudo aptitude install ccls
Summary
In this tutorial we learn how to fix ccls command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.