fitscopy command not found

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

Introduction

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

fitscopy: command not found

or when using sudo you get the following error message

sudo: fitscopy: command not found

Solutions to fitscopy: command not found

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

In Ubuntu fitscopy is provided by libcfitsio-bin package.

libcfitsio-bin is:

FITS (Flexible Image Transport System) is a data format most used in astronomy. cfitsio is a library of ANSI C routines for reading and writing FITS format data files. A set of Fortran-callable wrapper routines are also included for the convenience of Fortran programmers.

This package contains utility programs, based on CFITSIO, namely fitscopy, fpack and funpack.

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

sudo apt-get -y install libcfitsio-bin

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

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

sudo apt -y install libcfitsio-bin

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

sudo aptitude install libcfitsio-bin

Summary

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