dh_haskell_depends command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
dh_haskell_depends: command not found
or when using sudo you get the following error message
sudo: dh_haskell_depends: command not found
Solutions to dh_haskell_depends: command not found
How To Fix dh_haskell_depends: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu dh_haskell_depends is provided by haskell-devscripts-minimal package.
haskell-devscripts-minimal is:
This package provides a collection of scripts to help build Haskell packages for Debian. Unlike haskell-utils, this package is not expected to be installed on the machines of end users.
This package is designed to support Cabalized Haskell libraries. It is designed to build a library for each supported Debian compiler or interpreter, generate appropriate postinst/prerm files for each one, generate appropriate substvars entries for each one, and install the package in the Debian temporary area as part of the build process.
This package doesn’t provide functionality for generating coloured documentation and is mostly intended for bootstrapping a new architecture. If you want coloured documentation, use haskell-devscripts.
To fix this problem, we can install more using the command below.
sudo apt-get -y install haskell-devscripts-minimal
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install haskell-devscripts-minimal.
sudo apt -y install haskell-devscripts-minimal
Or if you have aptitude installed you can use the following command.
sudo aptitude install haskell-devscripts-minimal
Summary
In this tutorial we learn how to fix dh_haskell_depends command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.