hocon command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
hocon: command not found
or when using sudo you get the following error message
sudo: hocon: command not found
Solutions to hocon: command not found
How To Fix hocon: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu hocon is provided by ruby-hocon package.
ruby-hocon is:
ruby-hocon is a port of the Typesafe Config Java library to Ruby. The library provides Ruby support for the HOCON configuration file format. It supports parsing and modification of existing HOCON/JSON files as well as rendering parsed config objects back to a Ruby String.
To fix this problem, we can install more using the command below.
sudo apt-get -y install ruby-hocon
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install ruby-hocon.
sudo apt -y install ruby-hocon
Or if you have aptitude installed you can use the following command.
sudo aptitude install ruby-hocon
Summary
In this tutorial we learn how to fix hocon command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.