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

Unable to install wrk2 in osx-elcapitan #186

Closed
kalyanjennu opened this issue Dec 2, 2015 · 5 comments
Closed

Unable to install wrk2 in osx-elcapitan #186

kalyanjennu opened this issue Dec 2, 2015 · 5 comments

Comments

@kalyanjennu
Copy link

Hi,
I tried installing wrk2 in OS X elcapitan. I am getting below error.

CC src/wrk.c
In file included from src/wrk.c:3:
src/wrk.h:11:10: fatal error: 'openssl/ssl.h' file not found

include <openssl/ssl.h>

     ^

1 error generated.
make: *** [obj/wrk.o] Error 1

@yxy
Copy link

yxy commented Dec 4, 2015

obvisouly you should install openssl-dev library

but it will be a simple way to solve your problem.

install wrk using brew, see blew command

brew install wrk

It will automatic resolve all wrk's all dependces

@paranoidjk
Copy link

may be brew link openssl --force

@PiotrGoralczyk
Copy link

In my case modifying the Makefile and adding -I/usr/local/opt/openssl/include to CFLAGS and -L/usr/local/opt/openssl/lib to LIBS did the trick. Don't forget to make clean before rebuilding. ;)

When you brew install openssl, you get a message that explains it.

@PiotrGoralczyk
Copy link

@kalyanjennu: By the way, wrk2 is a separate project: https://github.com/giltene/wrk2

@wg
Copy link
Owner

wg commented Mar 26, 2016

Thanks for the replies everyone!

@wg wg closed this as completed Mar 26, 2016
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

5 participants