Ubuntu:

apt install libelf-dev

apt install libssl-dev

 

CentOS:

yum install elfutils-libelf-devel