Web-MeetMe and Database on two saperate Machines


I am having 2 server, detail is as follows.

Server_1: Asterisk, meetme
Server_2: WebMeetme,mysql

I want to install asterisk on server_1 and db and web-meetme(web page) on server_2.
I downloaded webmeetme in server_2, when trying to complie “cbmysql”, i am getting error that asterisk.c and all these files are missing…

Please help me how can I achieve it.