When you get an error No package 'libcrypto' found in your Ubuntu/Debian or CentOS or MacOS just execute the command,

Ubuntu/Debian:
 
$ sudo apt-get update
$ sudo apt install libcurl4-openssl-dev libssl-dev

CentOS:
 
$ yum install -y openssl-devel

MACOS:
 
$ brew install pkg-config
$ brew update
$ brew install openssl