chi2 command not found

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

Introduction

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

chi2: command not found

or when using sudo you get the following error message

sudo: chi2: command not found

Solutions to chi2: command not found

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

In Ubuntu chi2 is provided by paml package.

paml is:

PAML is a package of programs for phylogenetic analyses of DNA or protein sequences using maximum likelihood. PAML is not good for tree making. It may be used to estimate parameters and test hypotheses to study the evolutionary process, when you have reconstructed trees using other programs such as PAUP*, PHYLIP, MOLPHY, PhyML, RaxML, etc.

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

sudo apt-get -y install paml

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

You can also use apt command to install paml.

sudo apt -y install paml

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

sudo aptitude install paml

Summary

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