proj command not found

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

Introduction

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

proj: command not found

or when using sudo you get the following error message

sudo: proj: command not found

Solutions to proj: command not found

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

In Ubuntu proj is provided by proj-bin package.

proj-bin is:

Proj and invproj perform respective forward and inverse transformation of cartographic data to or from Cartesian data with a wide range of selectable projection functions (over 100 projections).

Geod and invgeod perform geodesic (Great Circle) computations for determining latitude, longitude and back azimuth of a terminus point given a initial point latitude, longitude, azimuth and distance (direct) or the forward and back azimuths and distance between an initial and terminus point latitudes and longitudes (inverse).

This package provides the PROJ binary tools.

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

sudo apt-get -y install proj-bin

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

You can also use apt command to install proj-bin.

sudo apt -y install proj-bin

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

sudo aptitude install proj-bin

Summary

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