collateindex.pl command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
collateindex.pl: command not found
or when using sudo you get the following error message
sudo: collateindex.pl: command not found
Solutions to collateindex.pl: command not found
How To Fix collateindex.pl: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu collateindex.pl is provided by docbook-dsssl package.
docbook-dsssl is:
This package provides DSSSL stylesheets which let you convert DocBook SGML or XML files to various formats.
This package contains two DocBook DSSSL stylesheets, one for “print” output and one for HTML. The print stylesheet can be used in conjunction with the RTF and the TeX back-ends that OpenJade provides to produce output suitable for printing. The HTML stylesheet can be used to convert DocBook documents into HTML.
The stylesheets are modular in design so that you can extend and customize them.
Note that you can also perform DocBook XML styling using the “docbook-xsl” package, which provides the XSL stylesheets. The XSL stylesheets are more actively maintained and contain more new features than these DSSSL stylesheets.
To fix this problem, we can install more using the command below.
sudo apt-get -y install docbook-dsssl
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install docbook-dsssl.
sudo apt -y install docbook-dsssl
Or if you have aptitude installed you can use the following command.
sudo aptitude install docbook-dsssl
Summary
In this tutorial we learn how to fix collateindex.pl command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.