pcsc-spy command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
pcsc-spy: command not found
or when using sudo you get the following error message
sudo: pcsc-spy: command not found
Solutions to pcsc-spy: command not found
How To Fix pcsc-spy: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu pcsc-spy is provided by libpcsclite-dev package.
libpcsclite-dev is:
The purpose of PC/SC Lite is to provide a Windows(R) SCard interface in a very small form factor for communicating to smart cards and smart cards readers.
This package contains the files needed for compiling and linking an application that communicates to any reader available to the PC/SC daemon.
This package also contains the PC/SC spying library: libpcscspy.so See http://ludovicrousseau.blogspot.com/2011/11/pcsc-api-spy-third-try.html
To fix this problem, we can install more using the command below.
sudo apt-get -y install libpcsclite-dev
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install libpcsclite-dev.
sudo apt -y install libpcsclite-dev
Or if you have aptitude installed you can use the following command.
sudo aptitude install libpcsclite-dev
Summary
In this tutorial we learn how to fix pcsc-spy command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.