bumptech / stud

The Scalable TLS Unwrapping Daemon
Other
1.43k stars 193 forks source link

Installation on CentOS 6.2 notes #133

Open jamshid opened 11 years ago

jamshid commented 11 years ago

Maybe this could be added to the README? Some notes on compiling stud on CentOS / RHEL 6.2.

# rpm -Uvh http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpmRetrieving http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm
# yum install openssl-devel
# yum install libev-devel

and I had to change the #include in stud.c:

$ git diff
diff --git a/stud.c b/stud.c
index 1e83617..1cdca85 100644
--- a/stud.c
+++ b/stud.c
@@ -60,7 +60,7 @@
 #include <openssl/err.h>
 #include <openssl/engine.h>
 #include <openssl/asn1.h>
-#include <ev.h>
+#include <libev/ev.h>

 #include "ringbuffer.h"
 #include "shctx.h"
mcsrainbow commented 11 years ago

Thank you very much! I have the same issue on CentOS6.3.

chip commented 9 years ago

Thanks @jamshid! :+1:

I had a similar issue on Ubuntu 14.04.1 LTS and did not need to edit stud.c, but instead was able to fix it by installing the development package for libev:

sudo apt-get install libev-dev

Hope this helps someone else.