easyjson command not found

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

Introduction

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

easyjson: command not found

or when using sudo you get the following error message

sudo: easyjson: command not found

Solutions to easyjson: command not found

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

In Ubuntu easyjson is provided by golang-easyjson package.

golang-easyjson is:

easyjson allows (un-)marshaling of JSON golang structs without the use of reflection by generating marshaller code.

One of the aims of the library is to keep generated code simple enough so that it can be easily optimized or fixed. Another goal is to provide users with ability to customize the generated code not available in ’encoding/json’, such as generating snake_case names or enabling ‘omitempty’ behavior by default.

This package contains the command-line client.

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

sudo apt-get -y install golang-easyjson

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

You can also use apt command to install golang-easyjson.

sudo apt -y install golang-easyjson

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

sudo aptitude install golang-easyjson

Summary

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