gp-2.13 command not found

In this troubleshooting guide we learn how to fix gp-2.13 command not found error message

Introduction

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

gp-2.13: command not found

or when using sudo you get the following error message

sudo: gp-2.13: command not found

Solutions to gp-2.13: command not found

How To Fix gp-2.13: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu gp-2.13 is provided by pari-gp package.

pari-gp is:

PARI/GP is a widely used computer algebra system designed for fast computations in number theory (factorizations, algebraic number theory, elliptic curves…), but also contains a large number of other useful functions to compute with mathematical entities such as matrices, polynomials, power series, algebraic numbers etc., and a lot of transcendental functions. PARI is also available as a C library to allow for faster computations.

Originally developed by Henri Cohen and his co-workers (University Bordeaux I, France), PARI is now under the GPL and maintained by Karim Belabas with the help of many volunteer contributors.

This package contains the GP calculator.

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

sudo apt-get -y install pari-gp

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

You can also use apt command to install pari-gp.

sudo apt -y install pari-gp

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

sudo aptitude install pari-gp

Summary

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