gather_stx_titles command not found

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

Introduction

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

gather_stx_titles: command not found

or when using sudo you get the following error message

sudo: gather_stx_titles: command not found

Solutions to gather_stx_titles: command not found

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

In Ubuntu gather_stx_titles is provided by stx2any package.

stx2any is:

stx2any is a converter from structured text (Stx), which is plain text written in a standardised way, into other formats. Formats available currently include (X)HTML, man, raw text, DocBook XML, PostScript and LaTeX.

Stx is a markup language in the tradition of plain text like markups, like wiki markup and ReST. For a comparison between different plain text markup languages, see stx2any’s home page (http://sange.fi/~atehwa/cgi-bin/piki.cgi/stx2any).

This package also has the following utilities:

  • strip_stx – a literate programming tool
  • gather_stx_titles – a script to automate cross-linking between documents
  • extract_usage_from_stx – a script to produce “usage” messages from man pages written in stx
  • html2stx – a utility to convert HTML into Stx.

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

sudo apt-get -y install stx2any

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

You can also use apt command to install stx2any.

sudo apt -y install stx2any

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

sudo aptitude install stx2any

Summary

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