stacks command not found

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

Introduction

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

stacks: command not found

or when using sudo you get the following error message

sudo: stacks: command not found

Solutions to stacks: command not found

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

In Ubuntu stacks is provided by stacks package.

stacks is:

Stacks is a software pipeline for building loci from short-read sequences, such as those generated on the Illumina platform. Stacks was developed to work with restriction enzyme-based data, such as RAD-seq, for the purpose of building genetic maps and conducting population genomics and phylogeography.

Note that this package installs Stacks such that all commands must be run as: $ stacks

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

sudo apt-get -y install stacks

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

You can also use apt command to install stacks.

sudo apt -y install stacks

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

sudo aptitude install stacks

Summary

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