hledger command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
hledger: command not found
or when using sudo you get the following error message
sudo: hledger: command not found
Solutions to hledger: command not found
How To Fix hledger: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu hledger is provided by hledger package.
hledger is:
hledger is a Haskell port and friendly fork of John Wiegley’s ledger accounting tool. This package provides the main hledger command-line tool; see the other hledger-* packages for web and curses interfaces and chart generation. hledger aims to be a reliable, practical financial reporting tool for day-to-day use, and also a useful library for building financial apps in haskell. Given a plain text file describing transactions, of money or any other commodity,
hledger will print the chart of accounts, account balances, or transactions you’re interested in. It can also help you add transactions to the journal file, or convert CSV data from your bank.
To fix this problem, we can install more using the command below.
sudo apt-get -y install hledger
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install hledger.
sudo apt -y install hledger
Or if you have aptitude installed you can use the following command.
sudo aptitude install hledger
Summary
In this tutorial we learn how to fix hledger command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.