Unable to execute ‘x86_64-linux-gnu-gcc’: No such file or directory Error

You receive the following error while installing a package. The reason behind this is that the compile package used for installation is not installed on the system. The following error is presented:

unable to execute 'x86_64-linux-gnu-gcc': No such file or directory Error
To install the package run the following command depending on your Linux distro. For Debian and Ubuntu run:
#  apt-get install gcc build-essential make

For RedHat, CentOS and Rocky, run the following command:

# dnf install build-essential gcc gcc-c++ make
Leave a Reply 0