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


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

Ravi Kumar Ankam

My Name is ARK. Expert in grasping any new technology, Interested in Sharing the knowledge. Learn more & Earn More

Leave a Reply

Your email address will not be published. Required fields are marked *