qnifti2dicom command not found

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

Introduction

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

qnifti2dicom: command not found

or when using sudo you get the following error message

sudo: qnifti2dicom: command not found

Solutions to qnifti2dicom: command not found

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

In Ubuntu qnifti2dicom is provided by qnifti2dicom package.

qnifti2dicom is:

Nifti2Dicom is a conversion tool that converts 3D NIfTI files (and other formats supported by ITK, including Analyze, MetaImage Nrrd and VTK) to DICOM. Unlike other conversion tools, it can import a DICOM file that is used to import the patient and study DICOM tags, and allows you to edit the accession number and other DICOM tags, in order to create a valid DICOM that can be imported in a PACS.

This package contains the Qt5 GUI.

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

sudo apt-get -y install qnifti2dicom

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

You can also use apt command to install qnifti2dicom.

sudo apt -y install qnifti2dicom

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

sudo aptitude install qnifti2dicom

Summary

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