gdcmscanner command not found

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

Introduction

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

gdcmscanner: command not found

or when using sudo you get the following error message

sudo: gdcmscanner: command not found

Solutions to gdcmscanner: command not found

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

In Ubuntu gdcmscanner 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 gdcmscanner command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.