make: *** [Makefile:3: all] Error 2 Compiling Error | Arkit
While compiling the netatop program in Centos 8 i got below error message. “make: *** [Makefile:3: all] Error 2“
/lib/modules/4.18.0-305.3.1.el8.x86_64/build No such a file or directory make: *** [Makefile:3: all] Error 2
Resolution
rm -rf /lib/modules/4.18.0-305.3.1.el8.x86_64/build
cd /lib/modules/$(uname -r)/
ln -s /usr/src/kernels/$(uname -r)/ build dnf install elfutils-libelf-devel -y
Now re-run your compiler it will be successful.
Thanks for Your Wonderful Support and Encouragement
More than 40,000 techies are part of our ARKIT community. Join us today and keep learning Linux, Cloud, Storage, DevOps, and IT technologies.