spgen command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
spgen: command not found
or when using sudo you get the following error message
sudo: spgen: command not found
Solutions to spgen: command not found
How To Fix spgen: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu spgen is provided by coccinelle package.
coccinelle is:
Coccinelle is a program matching and transformation tool for C. The programmer describes the code to match and the transformation to perform as a semantic patch, which looks like a standard patch, but can transform multiple files at any number of code sites.
To fix this problem, we can install more using the command below.
sudo apt-get -y install coccinelle
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install coccinelle.
sudo apt -y install coccinelle
Or if you have aptitude installed you can use the following command.
sudo aptitude install coccinelle
Summary
In this tutorial we learn how to fix spgen command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.