when you first compile application,you should look INSTALL document,
there has something you need take carefully,
it write as follows:
you mst have libev (and the header) installed.for some os,you have to install the
"-dev" package
attentation:Libev is NOT libevent ,i spent much time on install & uninstall different version.
i hope this will help you escape weast time.