nik4 command not found

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

Introduction

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

nik4: command not found

or when using sudo you get the following error message

sudo: nik4: command not found

Solutions to nik4: command not found

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

In Ubuntu nik4 is provided by nik4 package.

nik4 is:

Nik4 is a mapnik-to-image exporting script using the Mapnik Python bindings.

Nik4 takes great care to preserve values you feed it. If you say you need a 800x600 image, it won’t take a pixel less or more. It won’t shrink a bounding box or distort lines when specifying so called “scale factor”. When you need a 300 dpi image, you tell it –ppi 300 and can be sure you will get what you intended.

Also it can use real-world units, that is, millimeters (and prefers to). Specify dimensions for printing, choose bounding box and ppi scale - and the result won’t disappoint. Options are intuitive and plenty, and you will be amazed how much tasks became simpler with Nik4.

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

sudo apt-get -y install nik4

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

You can also use apt command to install nik4.

sudo apt -y install nik4

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

sudo aptitude install nik4

Summary

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