hakyll-init command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
hakyll-init: command not found
or when using sudo you get the following error message
sudo: hakyll-init: command not found
Solutions to hakyll-init: command not found
How To Fix hakyll-init: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu hakyll-init is provided by libghc-hakyll-dev package.
libghc-hakyll-dev is:
Hakyll is a static website compiler library. It provides you with the tools to create a simple or advanced static website using a Haskell DSL and formats such as markdown or RST. You can find more information, including a tutorial, on the website:
This package provides a library for the Haskell programming language. See http://www.haskell.org/ for more information on Haskell.
To fix this problem, we can install more using the command below.
sudo apt-get -y install libghc-hakyll-dev
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install libghc-hakyll-dev.
sudo apt -y install libghc-hakyll-dev
Or if you have aptitude installed you can use the following command.
sudo aptitude install libghc-hakyll-dev
Summary
In this tutorial we learn how to fix hakyll-init command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.