fragmaster command not found

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

Introduction

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

fragmaster: command not found

or when using sudo you get the following error message

sudo: fragmaster: command not found

Solutions to fragmaster: command not found

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

In Ubuntu fragmaster is provided by fragmaster package.

fragmaster is:

psfrag is a LaTeX package which allows one to replace text elements in included EPS graphics by arbitrary LaTeX output. Because psfrag uses Postscript for making the replacements, in principle you can’t use psfrag with pdflatex which doesn’t have any interfaces to postscript.

This package contains the Perl script fragmaster that produces a new EPS from your original EPS which already contains all those psfrag replacements. This new EPS graphic actually can be converted to PDF including all replacements. The resulting “encapsulated” PDF then can be used with pdflatex.

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

sudo apt-get -y install fragmaster

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

You can also use apt command to install fragmaster.

sudo apt -y install fragmaster

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

sudo aptitude install fragmaster

Summary

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