image-to-pascal command not found

In this troubleshooting guide we learn how to fix image-to-pascal command not found error message

Introduction

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

image-to-pascal: command not found

or when using sudo you get the following error message

sudo: image-to-pascal: command not found

Solutions to image-to-pascal: command not found

How To Fix image-to-pascal: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu image-to-pascal is provided by fp-units-castle-game-engine package.

fp-units-castle-game-engine is:

Castle Game Engine is a set of LGPL licenced libraries that are intended to ease developing 3D games with FreePascal / Lazarus.

It provides an excellent support for the VRML / X3D 3D data format. Other 3D formats are also supported.

It features many advanced graphic effects and easy to use API on top of OpenGL.

This package contains the FPC units and the auxiliary tools castle-curves, castle-engine, image-to-pascal, sprite-sheet-to-x3d, and texture-font-to-pascal.

This package suggests the gradle package. Gradle is only necessary if one wants to build Android applications, otherwise one can ignore that suggestion. Note that, in order to create Android applications, one will also need the Android SDK and NDK, and FPC cross-compiler, see https://github.com/castle-engine/castle-engine/wiki/Android.

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

sudo apt-get -y install fp-units-castle-game-engine

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

You can also use apt command to install fp-units-castle-game-engine.

sudo apt -y install fp-units-castle-game-engine

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

sudo aptitude install fp-units-castle-game-engine

Summary

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