nicolasff / webdis

A Redis HTTP interface with JSON output
https://webd.is
BSD 2-Clause "Simplified" License
2.84k stars 304 forks source link

Error on running `make` #163

Closed shubhambhattar closed 4 years ago

shubhambhattar commented 5 years ago

Getting this error after running make


$ make
cc -c -O0 -ggdb -Wall -Wextra -I. -Ijansson/src -Ihttp-parser -o webdis.o webdis.c
In file included from webdis.c:1:
./server.h:4:10: fatal error: 'event.h' file not found
#include <event.h>
         ^~~~~~~~~
1 error generated.
make: *** [webdis.o] Error 1
nicolasff commented 5 years ago

Hi Shubham,

You need to install the libevent headers, as described in the README. If you're on Ubuntu, you can try sudo apt-get install libevent-dev before running make.