checking for SSL headers… configure: error: Cannot find ssl headers
This error happens because of the absence of openssl development libraries and can be resolved by installing the same.
For RHEL/Centos systems,
#yum install openssl-devel
For Debian/Ubuntu systems,
#apt-get install libssl-dev
Now retry the installation and it will work without any issues.