idlc command not found

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

Introduction

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

idlc: command not found

or when using sudo you get the following error message

sudo: idlc: command not found

Solutions to idlc: command not found

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

In Ubuntu idlc is provided by cyclonedds-tools package.

cyclonedds-tools is:

Eclipse Cyclone DDS is a very performant and robust open-source implementation of the Data Distribution Service (DDS) standard by the Object Management Group (OMG) and the related wire protocol for interoperability (RTPS). It is developed completely in the open as an Eclipse IoT project with a growing list of adopters, and has become a tier-1 middleware for the Robot Operating System (ROS 2).

This package installs the command-line tools for Cyclone DDS, most importantly the Interface Definition Language (IDL) compiler, which is needed to specify data exchange formats for the participants in a DDS network.

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

sudo apt-get -y install cyclonedds-tools

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

You can also use apt command to install cyclonedds-tools.

sudo apt -y install cyclonedds-tools

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

sudo aptitude install cyclonedds-tools

Summary

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