semigodking / redsocks

transparent redirector of any TCP/UDP connection to proxy
Apache License 2.0
1.14k stars 246 forks source link

Compilation error #170

Closed srvh closed 2 years ago

srvh commented 2 years ago

Hello.

When I run "make" command, then I get error:

cc -fPIC -O3 -D_BSD_SOURCE -D_DEFAULT_SOURCE -Wall -std=c99 -D_XOPEN_SOURCE=600 -DUSE_CRYPTO_OPENSSL -c -o parser.o parser.c In file included from parser.c:29:0: utils.h:7:26: fatal error: event2/event.h: No such file or catalog

I have installed: libevent 2.0.21 libevent-devel 2.0.21 gcc

CentOS 7 system.

What is wrong?

semigodking commented 2 years ago

Usually, this is due to include path is not properly set. Export CFLAGS with correct path to libevent2 headers and library helps.

Denis @.***> 于 2022年1月10日周一 01:43写道:

Hello.

When I run "make" command, then I get error:

cc -fPIC -O3 -D_BSD_SOURCE -D_DEFAULT_SOURCE -Wall -std=c99 -D_XOPEN_SOURCE=600 -DUSE_CRYPTO_OPENSSL -c -o parser.o parser.c In file included from parser.c:29:0: utils.h:7:26: fatal error: event2/event.h: No such file or catalog

I have installed: libevent 2.0.21 libevent-devel 2.0.21 gcc

CentOS 7 system.

What is wrong?

— Reply to this email directly, view it on GitHub https://github.com/semigodking/redsocks/issues/170, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAP2XD7V4EV5HTHZZBEG4VLUVHCLNANCNFSM5LSC5TSQ . You are receiving this because you are subscribed to this thread.Message ID: @.***>