swetest command not found

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

Introduction

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

swetest: command not found

or when using sudo you get the following error message

sudo: swetest: command not found

Solutions to swetest: command not found

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

In Ubuntu swetest is provided by libswe-dev package.

libswe-dev is:

Contains static library, headers, example code and development manpages for libswe0. The Swiss Ephemeris offers these advantages: The Swiss Ephemeris is based upon the latest planetary and lunar ephemeris, DE405/406, developed by NASA’s Jet Propulsion Laboratory.

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

sudo apt-get -y install libswe-dev

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

You can also use apt command to install libswe-dev.

sudo apt -y install libswe-dev

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

sudo aptitude install libswe-dev

Summary

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