sudo apt-get install zlib1g-dev
sudo apt-get install libssl-dev
You need the support of the two libraries
Go to hadoop-common > target > native > CMakeFiles, check the error log CMakeError.log.
Is g++ installed?
Try the following:sudo apt-get install ant.It worked for me.