Thanks for the guide got stuck at:
The error was that I did not have the CMAKE_CXX_COMPILER
Solution:
sudo apt-get update
sudo apt-get install build-essential
The error was that I did not have the MYSQL dev libs and headers, in case anyone else has this issue on a headless Debian 9
Solution:
sudo apt-get install default-libmysqlclient-dev