gzserver command not found

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

Introduction

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

gzserver: command not found

or when using sudo you get the following error message

sudo: gzserver: command not found

Solutions to gzserver: command not found

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

In Ubuntu gzserver is provided by gazebo package.

gazebo is:

Gazebo is a multi-robot simulator for outdoor environments. Like Stage (part of the Player project), it is capable of simulating a population of robots, sensors and objects, but does so in a three-dimensional world. It generates both realistic sensor feedback and physically plausible interactions between objects (it includes an accurate simulation of rigid-body physics).

This package contains then main application binaries

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

sudo apt-get -y install gazebo

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

You can also use apt command to install gazebo.

sudo apt -y install gazebo

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

sudo aptitude install gazebo

Summary

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