bdf2gdfont command not found

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

Introduction

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

bdf2gdfont: command not found

or when using sudo you get the following error message

sudo: bdf2gdfont: command not found

Solutions to bdf2gdfont: command not found

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

In Ubuntu bdf2gdfont is provided by libgd-perl package.

libgd-perl is:

This is a autoloadable interface module for libgd, a popular library for creating and manipulating PNG files. With this library you can create PNG images on the fly or modify existing files. Features include:

  • Lines, polygons, rectangles and arcs, both filled and unfilled
  • Flood fills
  • The use of arbitrary images as brushes and as tiled fill patterns
  • Line styling (dashed lines and the like)
  • Horizontal and vertical text rendering
  • Support for transparency and interlacing
  • Support for TrueType font rendering, via libfreetype.
  • Support for spline curves, via GD::Polyline
  • Support for symbolic font names, such as “helvetica:italic”
  • Support for symbolic color names, such as “green”, via GD::Simple
  • Produces output in png, gif, jpeg and xbm format
  • Produces output in svg format via GD::SVG.

Included with the example code is the perl script qd.pl with QuickDraw routines for generating PICT2 files (used on Apple Macintosh).

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

sudo apt-get -y install libgd-perl

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

You can also use apt command to install libgd-perl.

sudo apt -y install libgd-perl

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

sudo aptitude install libgd-perl

Summary

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