shp2img command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
shp2img: command not found
or when using sudo you get the following error message
sudo: shp2img: command not found
Solutions to shp2img: command not found
How To Fix shp2img: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu shp2img is provided by mapserver-bin package.
mapserver-bin is:
This package provides command-line utilities for MapServer.
MapServer is a CGI-based framework for Internet map services which supports Open Geospatial Consortium (OGC) standards. Scripting functionality in MapScript is provided by the suggested mapscript library packages.
To fix this problem, we can install more using the command below.
sudo apt-get -y install mapserver-bin
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install mapserver-bin.
sudo apt -y install mapserver-bin
Or if you have aptitude installed you can use the following command.
sudo aptitude install mapserver-bin
Summary
In this tutorial we learn how to fix shp2img command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.