lcm-spy command not found

In this troubleshooting guide we learn how to fix lcm-spy command not found error message

Introduction

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

lcm-spy: command not found

or when using sudo you get the following error message

sudo: lcm-spy: command not found

Solutions to lcm-spy: command not found

How To Fix lcm-spy: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu lcm-spy is provided by liblcm-bin package.

liblcm-bin is:

LCM is a set of libraries and tools for message passing and data marshalling, targeted at real-time systems where high-bandwidth and low latency are critical. It provides a publish/subscribe message passing model and automatic marshalling/unmarshalling code generation with bindings for applications in a variety of programming languages.

This package provides the executable tools.

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

sudo apt-get -y install liblcm-bin

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

You can also use apt command to install liblcm-bin.

sudo apt -y install liblcm-bin

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

sudo aptitude install liblcm-bin

Summary

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