-
Notifications
You must be signed in to change notification settings - Fork 381
Installing wrk2 on Mac
Galder Zamarreño edited this page Aug 9, 2019
·
5 revisions
brew tap jabley/homebrew-wrk2
brew install --HEAD wrk2
First run:
brew install openssl
Remember about make clean
before retrying to run make
Based on: https://github.com/wg/wrk/issues/186#issuecomment-196819089
When building on macos, you might encounter this error:
$ make
Building LuaJIT...
HOSTCC host/minilua.o
HOSTLINK host/minilua
ld: library not found for -lgcc_s.10.4
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[1]: *** [host/minilua] Error 1
make: *** [deps/luajit/src/libluajit.a] Error 2
To fix it, follow steps suggested here:
$ cd /usr/local/lib
$ sudo ln -s ../../lib/libSystem.B.dylib libgcc_s.10.4.dylib
This is another error you might encounter:
$ make
...
BUILDVM jit/vmdef.lua
LINK luajit
Undefined symbols for architecture x86_64:
"__Unwind_DeleteException", referenced from:
_lj_err_unwind_dwarf in libluajit.a(lj_err.o)
"__Unwind_GetCFA", referenced from:
_lj_err_unwind_dwarf in libluajit.a(lj_err.o)
"__Unwind_RaiseException", referenced from:
_lj_err_throw in libluajit.a(lj_err.o)
"__Unwind_SetGR", referenced from:
_lj_err_unwind_dwarf in libluajit.a(lj_err.o)
"__Unwind_SetIP", referenced from:
_lj_err_unwind_dwarf in libluajit.a(lj_err.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[1]: *** [luajit] Error 1
make: *** [deps/luajit/src/libluajit.a] Error 2
To fix this error, you can follow advice here
make MACOSX_DEPLOYMENT_TARGET=10.14
Make sure you clean before rebuilding.