I have not tried to compile in for Ubuntu. Only for CentOS.
Looks like there is some additional specific packages are required. It is usual Ubuntu administrative task - finding and installing additional missing packages. Maybe some Ubuntu guru will help you with this.