###Step 1: Update system for latest packages
sudo apt-get -y update
or
sudo yum -y update
###Step 2: Install dependencies
sudo apt-get -y install libssl-dev git-core pkg-config pkgconfig build-essential curl gcc g++ libxml2-dev
or
sudo yum -y install libssl-dev git-core pkg-config pkgconfig build-essential curl gcc g++ libxml2-dev