-
Notifications
You must be signed in to change notification settings - Fork 47
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
How to install zklua on macosx? #16
Comments
你需要删除zklua.c中的第28行'_'。 |
Thks,删除掉后编译通过了。 |
只需要修改Makefile中的LUA_INC_DIR = /usr/local/include/luajit-2.0为你自己的luajit头文件路径即可 |
:( 没找到LUA_INC_DIR,只有: |
作者是用pkg-config搞的。我不知该如何修改:( |
LUA_INC_DIR = /usr/local/include/luajit-2.0 我是这样修改的 |
谢谢啦,那上面那个INSTALL_PATH应该如何修改呢? install: zklua.so |
我改好了,再次感谢。 |
在openresty环境下运行实例,直接导致nginx进程崩溃了。 |
我也有这个问题,但是作者一直没回应,你先看下pull request把其他的BUG改掉 |
localhost:zklua steven$ make
gcc -c
pkg-config --cflags lua
-fPIC -O2 zklua.czklua.c:28:1: error: unknown type name '_'
_
^
In file included from zklua.c:29:
In file included from ./zklua.h:24:
In file included from /usr/local/include/lua.h:12:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/clang/6.1.0/include/stdarg.h:30:1: error: expected identifier or
'('
typedef __builtin_va_list va_list;
^
In file included from zklua.c:29:
./zklua.h:28:10: fatal error: 'zookeeper/zookeeper.h' file not found
include <zookeeper/zookeeper.h>
3 errors generated.
make: *** [zklua.o] Error 1
The text was updated successfully, but these errors were encountered: