gp2c command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
gp2c: command not found
or when using sudo you get the following error message
sudo: gp2c: command not found
Solutions to gp2c: command not found
How To Fix gp2c: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu gp2c is provided by pari-gp2c package.
pari-gp2c 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 G2PC compiler that converts GP scripts to C libpari modules and the helper scripts gp2c-run and gp2c-dbg.
To fix this problem, we can install more using the command below.
sudo apt-get -y install pari-gp2c
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install pari-gp2c.
sudo apt -y install pari-gp2c
Or if you have aptitude installed you can use the following command.
sudo aptitude install pari-gp2c
Summary
In this tutorial we learn how to fix gp2c command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.