wcsgrid command not found

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

Introduction

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

wcsgrid: command not found

or when using sudo you get the following error message

sudo: wcsgrid: command not found

Solutions to wcsgrid: command not found

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

In Ubuntu wcsgrid is provided by wcslib-tools package.

wcslib-tools is:

WCSLIB is a C library, supplied with a full set of Fortran wrappers, that implements the “World Coordinate System” (WCS) standard in FITS (Flexible Image Transport System).

This package contains the utility programs fitshdr, wcsware, HPXcvt, and wcsgrid that are included in wcslib.

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

sudo apt-get -y install wcslib-tools

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

You can also use apt command to install wcslib-tools.

sudo apt -y install wcslib-tools

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

sudo aptitude install wcslib-tools

Summary

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