fig2eps command not found

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

Introduction

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

fig2eps: command not found

or when using sudo you get the following error message

sudo: fig2eps: command not found

Solutions to fig2eps: command not found

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

In Ubuntu fig2eps is provided by fig2ps package.

fig2ps is:

This perl script takes into advantage the pstex and pstex_t export formats of fig2dev (xfig) to separate special text and the rest of a xfig file. Then, the text is processed separately using LaTeX, and everything is put back together at the end, to make a nice wonderful figure with the text formatted exactly the same way as the article you are typing ! PDF output is also available.

Though gv is strictly speaking not necessary for conversion, it can be called directly by fig2ps depending on the options you choose. For nice PDF output, you should install Type 1 fonts, such as lmodern or cm-super.

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

sudo apt-get -y install fig2ps

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

You can also use apt command to install fig2ps.

sudo apt -y install fig2ps

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

sudo aptitude install fig2ps

Summary

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