scanelf command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
scanelf: command not found
or when using sudo you get the following error message
sudo: scanelf: command not found
Solutions to scanelf: command not found
How To Fix scanelf: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu scanelf is provided by pax-utils package.
pax-utils is:
This is a small set of various PaX aware and related utilities for ELF binaries. It can check ELF binary files and running processes for issues that might be relevant when using ELF binaries along with PaX, such as non-PIC code or executable stack and heap.
This package installs: dumpelf, lddtree, pspax, scanelf, scanmacho and symtree.
To fix this problem, we can install more using the command below.
sudo apt-get -y install pax-utils
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install pax-utils.
sudo apt -y install pax-utils
Or if you have aptitude installed you can use the following command.
sudo aptitude install pax-utils
Summary
In this tutorial we learn how to fix scanelf command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.