aeson-pretty command not found

In this troubleshooting guide we learn how to fix aeson-pretty command not found error message

Introduction

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

aeson-pretty: command not found

or when using sudo you get the following error message

sudo: aeson-pretty: command not found

Solutions to aeson-pretty: command not found

How To Fix aeson-pretty: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu aeson-pretty is provided by aeson-pretty package.

aeson-pretty is:

The command-line tool reads JSON from stdin and writes prettified JSON to stdout. It also offers a complementary compact-mode, essentially the opposite of pretty-printing.

This is built on the aeson-pretty library; see also libghc-aeson-pretty-dev.

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

sudo apt-get -y install aeson-pretty

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

You can also use apt command to install aeson-pretty.

sudo apt -y install aeson-pretty

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

sudo aptitude install aeson-pretty

Summary

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