giltene / wrk2

A constant throughput, correct latency recording variant of wrk
Apache License 2.0
4.23k stars 381 forks source link

Macos source as well homebrew installation fails #95

Open nitinsurana opened 4 years ago

nitinsurana commented 4 years ago

Followed this wiki and tried building from source as well as using homebrew, both fails with the following error on MacOS

LUAJIT src/wrk.lua
./luajit: cannot create state: not enough memory
make: *** [obj/bytecode.o] Error 1

MacOS version : 10.15.2

Related: https://github.com/jabley/homebrew-wrk2/issues/5 https://github.com/obsproject/obs-studio/issues/2784

nitinsurana commented 4 years ago

Duplicate of https://github.com/giltene/wrk2/issues/86 and the solution mentioned worked.

Keeping this issue open for updating the wiki or LuaJIT dependency.

Zelnox commented 3 years ago

🤔 I'm getting

CC src/script.c
src/script.c:476:5: error: implicit declaration of function 'gettimeofday' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
    gettimeofday(&tv, NULL);
    ^
1 error generated.
make: *** [obj/script.o] Error 1

even after patching luajit