bbox command not found

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

Introduction

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

bbox: command not found

or when using sudo you get the following error message

sudo: bbox: command not found

Solutions to bbox: command not found

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

In Ubuntu bbox is provided by ps2eps package.

ps2eps is:

ps2eps is a tool to produce Encapsulated PostScript Files (EPS/EPSF) from usual one-paged Postscript documents. It calculates correct Bounding Boxes for those EPS files and filters some special postscript command sequences that can produce erroneous results on printers. EPS files are needed for including (scalable) graphics into TeX (or even Word) documents. Other programs like ps2epsi do not calculate the bounding box always correctly (because the values are put on the PostScript stack which may get corrupted by bad PostScript code) or rounded it off so that clipping the EPS cut off some parts of the image. Therefore ps2eps uses a resolution of 144 DPI to get the correct bounding box.

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

sudo apt-get -y install ps2eps

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

You can also use apt command to install ps2eps.

sudo apt -y install ps2eps

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

sudo aptitude install ps2eps

Summary

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