jags command not found

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

Introduction

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

jags: command not found

or when using sudo you get the following error message

sudo: jags: command not found

Solutions to jags: command not found

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

In Ubuntu jags is provided by jags package.

jags is:

JAGS is Just Another Gibbs Sampler. It is a program for analysis of Bayesian hierarchical models using Markov Chain Monte Carlo (MCMC) simulation not wholly unlike BUGS.

JAGS was written with three aims in mind:

  • To have an engine for the BUGS language that runs on Unix
  • To be extensible, allowing users to write their own functions, distributions and samplers.
  • To be a plaftorm for experimentation with ideas in Bayesian modelling

This package contains the ‘jags’ binary as well as the associated shared library modules loaded by the binary.

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

sudo apt-get -y install jags

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

You can also use apt command to install jags.

sudo apt -y install jags

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

sudo aptitude install jags

Summary

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