phc command not found

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

Introduction

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

phc: command not found

or when using sudo you get the following error message

sudo: phc: command not found

Solutions to phc: command not found

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

In Ubuntu phc is provided by phcpack package.

phcpack is:

PHCpack is a software package to solve polynomial systems by homotopy continuation methods.

A polynomial system is given as a sequence of polynomials in several variables. Homotopy continuation methods operate in two stages. In the first stage, a family of polynomial systems (the so-called homotopy) is constructed. This homotopy contains a polynomial system with known solutions. In the second stage, numerical continuation methods are applied to track the solution paths defined by the homotopy, starting at the known solutions and leading to the solutions of the given polynomial system.

This package contains the command line interface to PHCpack.

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

sudo apt-get -y install phcpack

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

You can also use apt command to install phcpack.

sudo apt -y install phcpack

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

sudo aptitude install phcpack

Summary

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