Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to build the project? #12

Open
BilyZ98 opened this issue Aug 5, 2020 · 2 comments
Open

How to build the project? #12

BilyZ98 opened this issue Aug 5, 2020 · 2 comments

Comments

@BilyZ98
Copy link

BilyZ98 commented Aug 5, 2020

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?

@dormando
Copy link
Member

dormando commented Aug 5, 2020

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"

@dormando
Copy link
Member

dormando commented Aug 5, 2020

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants