DrawTree command not found

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

Introduction

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

DrawTree: command not found

or when using sudo you get the following error message

sudo: DrawTree: command not found

Solutions to DrawTree: command not found

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

In Ubuntu DrawTree is provided by phylip package.

phylip is:

The PHYLogeny Inference Package is a package of programs for inferring phylogenies (evolutionary trees) from sequences. Methods that are available in the package include parsimony, distance matrix, and likelihood methods, including bootstrapping and consensus trees. Data types that can be handled include molecular sequences, gene frequencies, restriction sites, distance matrices, and 0/1 discrete characters.

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

sudo apt-get -y install phylip

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

You can also use apt command to install phylip.

sudo apt -y install phylip

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

sudo aptitude install phylip

Summary

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