The iputils package is set of small useful utilities for Linux networking. when I tried to compile it from CentOS 7, it turned out to be lacking some dependencies by default.

### sys/capability.h

This can be resolved by installing libcap-devel.

### idn2.h

This can be resolved by installing libidn2-devel.

### nettle/md5.h

This can be resolved by installing nettle-devel.

### Using yum provides to find required libraries

One of the most frustrating things about compiling a new library is some library is missing, yum provides can save you a bunch of time. Most often the library that you are missing is packaged in a package named similar to the library. For example, if you miss nettle/md5.h, simply run the script below to check availabilities.

Pick up the one that suit your case and it should be working, otherwise, goole it.