dcm2niix command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
dcm2niix: command not found
or when using sudo you get the following error message
sudo: dcm2niix: command not found
Solutions to dcm2niix: command not found
How To Fix dcm2niix: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu dcm2niix is provided by dcm2niix package.
dcm2niix is:
dcm2niix is the successor of dcm2nii, a popular tool for converting images from the complicated formats used by scanner manufacturers (DICOM, PAR/REC) to the simpler NIfTI format used by many scientific tools. It works for all modalities (CT, MRI, PET, SPECT) and sequence types.
To fix this problem, we can install more using the command below.
sudo apt-get -y install dcm2niix
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install dcm2niix.
sudo apt -y install dcm2niix
Or if you have aptitude installed you can use the following command.
sudo aptitude install dcm2niix
Summary
In this tutorial we learn how to fix dcm2niix command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.