Unable to compile MasterServer

Hello, running a ubuntu server and trying to get a unity master server running. but i cant get it to compile.
iv installed g++ gcc and the ncurses lib.
looked around and there issent a clear defined way to do it.
heres the console error.

im not the best with linux =/

same problem here. any solutions?