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