nifti_stats command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
nifti_stats: command not found
or when using sudo you get the following error message
sudo: nifti_stats: command not found
Solutions to nifti_stats: command not found
How To Fix nifti_stats: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu nifti_stats is provided by nifti-bin package.
nifti-bin is:
Niftilib is a set of i/o libraries for reading and writing files in the NIfTI-1 data format. NIfTI-1 is a binary file format for storing medical image data, e.g. magnetic resonance image (MRI) and functional MRI (fMRI) brain images.
This package provides the tools that are shipped with the library (nifti_tool, nifti_stats and nifti1_test).
To fix this problem, we can install more using the command below.
sudo apt-get -y install nifti-bin
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install nifti-bin.
sudo apt -y install nifti-bin
Or if you have aptitude installed you can use the following command.
sudo aptitude install nifti-bin
Summary
In this tutorial we learn how to fix nifti_stats command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.