irony-server command not found

In this troubleshooting guide we learn how to fix irony-server command not found error message

Introduction

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

irony-server: command not found

or when using sudo you get the following error message

sudo: irony-server: command not found

Solutions to irony-server: command not found

How To Fix irony-server: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu irony-server is provided by irony-server package.

irony-server is:

irony-mode is an Emacs minor-mode that aims at improving the editing experience for the C, C++ and Objective-C languages. It works by using a combination of an Emacs package and a C++ program (irony-server) that uses libclang.

This package contains the architecture-specific irony-server.

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

sudo apt-get -y install irony-server

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

You can also use apt command to install irony-server.

sudo apt -y install irony-server

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

sudo aptitude install irony-server

Summary

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