You will need to add the missing dependencies before compiling from source.

error: ssl is required but missing

sudo apt-get install libssl-dev

 error: lzo enabled but missing

sudo apt-get install liblzo2-dev

error: libpam required but missing

sudo apt-get install libpam0g-dev