gdcminfo command not found

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

Introduction

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

gdcminfo: command not found

or when using sudo you get the following error message

sudo: gdcminfo: command not found

Solutions to gdcminfo: command not found

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

In Ubuntu gdcminfo is provided by libgdcm-tools package.

libgdcm-tools is:

Grassroots DiCoM is a C++ library for DICOM medical files. It is automatically wrapped to python/C#/Java (using swig). It supports RAW,JPEG (lossy/lossless),J2K,JPEG-LS, RLE and deflated.

Install this package for the gdcmanon, gdcmconv, gdcmdiff, gdcmdump, gdcmpap3, gdcmgendir, gdcmimg, gdcminfo, gdcmpdf, gdcmraw, gdcmscanner, gdcmscu, gdcmtar, gdcmxml programs.

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

sudo apt-get -y install libgdcm-tools

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

You can also use apt command to install libgdcm-tools.

sudo apt -y install libgdcm-tools

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

sudo aptitude install libgdcm-tools

Summary

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