fastrtpsgen command not found

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

Introduction

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

fastrtpsgen: command not found

or when using sudo you get the following error message

sudo: fastrtpsgen: command not found

Solutions to fastrtpsgen: command not found

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

In Ubuntu fastrtpsgen is provided by fastddsgen package.

fastddsgen is:

eProsima FastDDS-Gen is a Java application that generates source code for eProsima FastDDS using the data types defined in an IDL (Interface Definition Language) file. This generated source code can be used in any FastDDS application in order to define the data type of a topic, which will later be used to publish or subscribe.

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

sudo apt-get -y install fastddsgen

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

You can also use apt command to install fastddsgen.

sudo apt -y install fastddsgen

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

sudo aptitude install fastddsgen

Summary

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