patchelf command not found
In this troubleshooting guide we learn how to fix patchelf command not found error message
Introduction
When you run more command in linux terminal / console, you get the following error message
patchelf: command not found
or when using sudo you get the following error message
sudo: patchelf: command not found
Solutions to patchelf: command not found
How To Fix patchelf: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu patchelf is provided by patchelf package.
patchelf is:
PatchELF is a simple utility for modifying existing ELF executables and libraries. In particular, it can do the following:
- Change the dynamic loader (“ELF interpreter”) of executables
- Change the RPATH of executables and libraries
- Remove declared dependencies on dynamic libraries (DT_NEEDED entries)
To fix this problem, we can install more using the command below.
sudo apt-get -y install patchelf
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install patchelf.
sudo apt -y install patchelf
Or if you have aptitude installed you can use the following command.
sudo aptitude install patchelf
Summary
In this tutorial we learn how to fix patchelf command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.