go-bindata command not found

In this troubleshooting guide we learn how to fix go-bindata command not found error message

Introduction

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

go-bindata: command not found

or when using sudo you get the following error message

sudo: go-bindata: command not found

Solutions to go-bindata: command not found

How To Fix go-bindata: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu go-bindata is provided by go-bindata package.

go-bindata is:

This tool converts any file into manageable Go source code. It is useful for embedding binary data into a Go program. The file data is optionally gzip compressed before being converted to a raw byte slice.

This package provides the standalone utility go-bindata.

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

sudo apt-get -y install go-bindata

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

You can also use apt command to install go-bindata.

sudo apt -y install go-bindata

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

sudo aptitude install go-bindata

Summary

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