~ ❯❯❯ luarocks install torch-word-emb
Installing https://raw.githubusercontent.com/torch/rocks/master/torch-word-emb-1.4-0.rockspec...
Using https://raw.githubusercontent.com/torch/rocks/master/torch-word-emb-1.4-0.rockspec... switching to 'build' mode
Cloning into 'torch-word-emb'...
remote: Counting objects: 9, done.
remote: Compressing objects: 100% (9/9), done.
remote: Total 9 (delta 0), reused 2 (delta 0), pack-reused 0
Receiving objects: 100% (9/9), 4.19 KiB | 0 bytes/s, done.
Note: checking out 'cbd9341f74dadaff89b78cce4e8a99550657a35d'.
You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.
If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:
git checkout -b <new-branch-name>
Warning: variable CFLAGS was not passed in build_variables
--- build
CFLAGS -std=c99 -Wall -pedantic -O2 -I/Users/brandonjabr/torch/install/include/TH -I/Users/brandonjabr/torch/install/include
LIBFLAG -bundle -undefined dynamic_lookup -all_load
LUA_LIBDIR /Users/brandonjabr/torch/install/lib
LUA_BINDIR /Users/brandonjabr/torch/install/bin
LUA_INCDIR /Users/brandonjabr/torch/install/include
LUA /Users/brandonjabr/torch/install/bin/luajit
env MACOSX_DEPLOYMENT_TARGET=10.8 gcc -std=c99 -Wall -pedantic -O2 -I/Users/brandonjabr/torch/install/include/TH -I/Users/brandonjabr/torch/install/include -fpic -shared -o wordemb.so wordemb.c
Undefined symbols for architecture x86_64:
"_THFloatTensor_data", referenced from:
_load_word_embedding in wordemb-4632b4.o
"_THFloatTensor_newWithSize2d", referenced from:
_load_word_embedding in wordemb-4632b4.o
"_luaL_checklstring", referenced from:
_load_word2vec_bin in wordemb-4632b4.o
_load_word2vec_text in wordemb-4632b4.o
_load_glove_text in wordemb-4632b4.o
"_luaT_pushudata", referenced from:
_load_word_embedding in wordemb-4632b4.o
"_lua_createtable", referenced from:
_load_word_embedding in wordemb-4632b4.o
_luaopen_wordemb in wordemb-4632b4.o
"_lua_pushcclosure", referenced from:
_luaopen_wordemb in wordemb-4632b4.o
"_lua_pushinteger", referenced from:
_load_word_embedding in wordemb-4632b4.o
"_lua_setfield", referenced from:
_load_word_embedding in wordemb-4632b4.o
_luaopen_wordemb in wordemb-4632b4.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: *** [wordemb.so] Error 1
Error: Build error: Failed building.
I've tried multiple different CLT versions, but I just can't get this to build for some odd reason, currently using Xcode 7.2's clang. Any help is sincerely appreciated.
Full output from running luarocks install torch-word-emb:
I've tried multiple different CLT versions, but I just can't get this to build for some odd reason, currently using Xcode 7.2's clang. Any help is sincerely appreciated.