htmlcxx command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
htmlcxx: command not found
or when using sudo you get the following error message
sudo: htmlcxx: command not found
Solutions to htmlcxx: command not found
How To Fix htmlcxx: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu htmlcxx is provided by libhtmlcxx-dev package.
libhtmlcxx-dev is:
htmlcxx is a simple non-validating CSS1 and HTML parser for C++. Although there are several other html parsers available, htmlcxx has some characteristics that make it unique:
- STL like navigation of DOM tree, using excellent tree.hh library from Kasper Peeters
- It is possible to reproduce exactly, character by character, the original document from the parse tree
- Bundled CSS parser
- Optional parsing of attributes
- C++ code that looks like C++ (not so true anymore)
- Offsets of tags/elements in the original document are stored in the nodes of the DOM tree
The parsing politics of htmlcxx were created trying to mimic Mozilla Firefox (http://www.mozilla.org) behavior. So you should expect parse trees similar to those create by Firefox. However, differently from Firefox, htmlcxx does not insert non-existent stuff in your html. Therefore, serializing the DOM tree gives exactly the same bytes contained in the original HTML document.
This package contains files required for developing software that makes use of htmlcxx.
To fix this problem, we can install more using the command below.
sudo apt-get -y install libhtmlcxx-dev
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install libhtmlcxx-dev.
sudo apt -y install libhtmlcxx-dev
Or if you have aptitude installed you can use the following command.
sudo aptitude install libhtmlcxx-dev
Summary
In this tutorial we learn how to fix htmlcxx command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.