Closed probeadd closed 5 years ago
Same here :/
@guizmaii and @probeadd, could you please check my fix: https://github.com/giltene/wrk2/pull/66
Just installed in on my Mac (10.13.6) with no problems following the instructions: https://github.com/giltene/wrk2/wiki/Installing-wrk2-on-Mac
Did not have to modify the Makefile for wrk2
command to work.
I have numerous dev dependencies (brew, xcode, etc) installed already so something may have been luckily aligned - I'm unsure what was needed for the install to work well.
Just installed in on my Mac (10.13.6) with no problems following the instructions:
The issue appears on Mac Mojave: 10.14.+, because luajit requires MACOSX_DEPLOYMENT_TARGET should be set.
I modified file deps/luajit/src/Makefile
line 293:
# export MACOSX_DEPLOYMENT_TARGET=10.4
as
export MACOSX_DEPLOYMENT_TARGET=10.14
fixed this.
Fix(https://github.com/giltene/wrk2/pull/66) is already introduced and it sets MACOSX_DEPLOYMENT_TARGET dynamically based on OS you are running.
I am getting this error while running make
:
==== Building LuaJIT 2.0.3 ====
/Applications/Xcode.app/Contents/Developer/usr/bin/make -C src
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: *** [default] Error 2
@indrayam, PR#66 solves this issue. Unfortunately it is not merged yet. Anyway it is already merged into https://github.com/jabley/homebrew-wrk2, so you can use this tap for macosx
Thanks, @AnderEnder. It worked!
I have tried it on M1 Mac, it seems not work. could anyone be so kind as to share the working case on M1 ? ( Please feel free to correct me if I missed anything, thanks. )
I tried to install wrk2 on Mac (MacOS Mojave verison 10.14 (18A391)) via HomeBrew. Here is the output:
I also tried to build from source, here is the output:
Is there any solution for this? Thank you.