happy command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
happy: command not found
or when using sudo you get the following error message
sudo: happy: command not found
Solutions to happy: command not found
How To Fix happy: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu happy is provided by happy package.
happy is:
Happy is a parser generator system for Haskell, similar to the tool
yacc' for C. Like
yacc’, it takes a file containing an annotated BNF specification of a grammar and produces a Haskell module containing a parser for the grammar.
Happy is flexible: you can have several Happy parsers in the same program, and several entry points to a single grammar. Happy can work in conjunction with a lexical analyser supplied by the user (either hand-written or generated by another program), or it can parse a stream of characters directly (but this isn’t practical in most cases).
To fix this problem, we can install more using the command below.
sudo apt-get -y install happy
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install happy.
sudo apt -y install happy
Or if you have aptitude installed you can use the following command.
sudo aptitude install happy
Summary
In this tutorial we learn how to fix happy command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.