Describe the bug
Unable to build fluent-bit. Seeing below error when compiling the source code with make
To Reproduce
make. Compilation fail with below error ==== Building LuaJIT 2.1.0-beta3 ====
HOSTCC host/minilua.o
host/minilua.c:34:10: fatal error: 'math.h' file not found
#include <math.h>
^~~~~~~~
1 error generated.
make[4]: *** [host/minilua.o] Error 1
make[3]: *** [default] Error 2
make[2]: *** [luajit-prefix/src/luajit-stamp/luajit-build] Error 2
make[1]: *** [CMakeFiles/luajit.dir/all] Error 2
make: *** [all] Error 2
Expected behavior
Linking C executable ../bin/fluent-bit
[100%] Built target fluent-bit-bin
Your Environment
Check the following threads:
In short, XCode not provide /usr/include by default anymore since Mojave.
You just need to install the following package manually, and the bug should
be gone.
/Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.14. pkg
@fujimotos , Thank you! I will try and get back..
Note : For people who want to install fluent-bit on mac, brew install fluent-bit works.. This issue is only when compiling the source code.
thanks both for reporting and addressing the issue. Closing the ticket.
Most helpful comment
@fujimotos , Thank you! I will try and get back..
Note : For people who want to install fluent-bit on mac,
brew install fluent-bitworks.. This issue is only when compiling the source code.