memcached/mc-crusher

How to build the project?

Opened this issue · 2 comments

I want to build the project and run it. But I have no idea how to build it. In readme it says I should install libevent and headers but I have no what headers is.

And then I need to exec ./compile but still, I couldn't find that binary executable file and I couldn't run make, which prompts me the following error.
mc-crusher.c:59:19: error: ‘NI_MAXHOST’ undeclared here (not in a function) char host_default[NI_MAXHOST] = "127.0.0.1";

Is this because I haven't installed the headers?

What OS/distro/etc do you have? normally you just need to install a "libevent-dev" or "libevent-devel" library if you're on debian or a redhat-based. Then just type "make"

Ah, I'll update the README to mention the makefile when I get a chance.