It’s the combination of many ways.
First Choose Your File To Download.
I recommand you to use .deb file to download.
And Then Run the following commands
sudo apt-get install build-essential
sudo apt-get -f install
sudo apt-get install libssl-dev
Then Run the .deb file with terminal or ubuntu software center.
In This way,u don’t need to edit a file named common.mak. 😛
100% guarantee because I’ve tested this way!