srec_cmp command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
srec_cmp: command not found
or when using sudo you get the following error message
sudo: srec_cmp: command not found
Solutions to srec_cmp: command not found
How To Fix srec_cmp: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu srec_cmp is provided by srecord package.
srecord is:
The srecord package is a collection of powerful tools for manipulating EPROM load files. It reads and writes numerous EPROM file formats, and can perform many different manipulations.
The tools include:
- The srec_cat program may be used to catenate (join) EPROM load files, or portions of EPROM load files, together. Because it understands all of the input and output formats, it can also be used to convert files from one format to another. It also understands filters.
- The srec_cmp program may be used to compare EPROM load files, or portions of EPROM load files, for equality.
- The srec_info program may be used to print summary information about EPROM load files.
To fix this problem, we can install more using the command below.
sudo apt-get -y install srecord
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install srecord.
sudo apt -y install srecord
Or if you have aptitude installed you can use the following command.
sudo aptitude install srecord
Summary
In this tutorial we learn how to fix srec_cmp command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.