-
Notifications
You must be signed in to change notification settings - Fork 34
Description
Trying to install async through luarockt on os x yosemite and I get the following error:
luarocks install async
Installing https://raw.githubusercontent.com/torch/rocks/master/async-scm-1.rockspec...
Using https://raw.githubusercontent.com/torch/rocks/master/async-scm-1.rockspec... switching to 'build' mode
Cloning into 'async'...
remote: Counting objects: 203, done.
remote: Compressing objects: 100% (176/176), done.
remote: Total 203 (delta 20), reused 167 (delta 20)
Receiving objects: 100% (203/203), 395.29 KiB | 435.00 KiB/s, done.
Resolving deltas: 100% (20/20), done.
Checking connectivity... done.
make LUA_BINDIR=/usr/local/bin LUA_LIBDIR=/usr/local/lib LUA_INCDIR=/usr/local/include
/Applications/Xcode.app/Contents/Developer/usr/bin/make -C lhttp_parser LUA_BINDIR=/usr/local/bin LUA_LIBDIR=/usr/local/lib LUA_INCDIR=/usr/local/include
cc -c lhttp_parser.c -o lhttp_parser.o -Ihttp-parser -I /usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -Wall -Werror -fPIC
CPPFLAGS=-fPIC /Applications/Xcode.app/Contents/Developer/usr/bin/make -C http-parser http_parser.o
cc -fPIC -I. -DHTTP_PARSER_STRICT=0 -Wall -Wextra -Werror -O3 -c http_parser.c
cc -bundle -o lhttp_parser.so lhttp_parser.o http-parser/http_parser.o -lm -lpthread -lluajit -L /usr/local/lib
Undefined symbols for architecture x86_64:
"_luaL_setfuncs", referenced from:
_luaopen_lhttp_parser in lhttp_parser.o
"_lua_callk", referenced from:
_lhttp_parser_on_message_begin in lhttp_parser.o
_lhttp_parser_on_url in lhttp_parser.o
_lhttp_parser_on_header_field in lhttp_parser.o
_lhttp_parser_on_header_value in lhttp_parser.o
_lhttp_parser_on_headers_complete in lhttp_parser.o
_lhttp_parser_on_body in lhttp_parser.o
_lhttp_parser_on_message_complete in lhttp_parser.o
...
"_lua_getuservalue", referenced from:
_lhttp_parser_on_message_begin in lhttp_parser.o
_lhttp_parser_on_url in lhttp_parser.o
_lhttp_parser_on_header_field in lhttp_parser.o
_lhttp_parser_on_header_value in lhttp_parser.o
_lhttp_parser_on_headers_complete in lhttp_parser.o
_lhttp_parser_on_body in lhttp_parser.o
_lhttp_parser_on_message_complete in lhttp_parser.o
...
"_lua_setuservalue", referenced from:
_lhttp_parser_new in lhttp_parser.o
"_lua_tointegerx", referenced from:
_lhttp_parser_parse_url in lhttp_parser.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]: *** [lhttp_parser.so] Error 1
make: *** [lhttp_parser/lhttp_parser.so] Error 2
Error: Build error: Failed building.