DtdToHaskell command not found

In this troubleshooting guide we learn how to fix DtdToHaskell command not found error message

Introduction

When you run more command in linux terminal / console, you get the following error message

DtdToHaskell: command not found

or when using sudo you get the following error message

sudo: DtdToHaskell: command not found

Solutions to DtdToHaskell: command not found

How To Fix DtdToHaskell: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu DtdToHaskell is provided by haxml package.

haxml is:

HaXml is a collection of utilities for parsing, filtering, transforming, and generating XML documents using Haskell. Its basic facilities include:

  • a parser for XML,
  • a separate error-correcting parser for HTML,
  • an XML validator,
  • pretty-printers for XML and HTML.

This package contains the HaXml command-line tools.

To fix this problem, we can install more using the command below.

sudo apt-get -y install haxml

This command might take some time to finish depending on your machine internet connection.

You can also use apt command to install haxml.

sudo apt -y install haxml

Or if you have aptitude installed you can use the following command.

sudo aptitude install haxml

Summary

In this tutorial we learn how to fix DtdToHaskell command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.