Can't build or install
adrien-jacquot opened this issue · comments
Might be an environment issue, I tried both building npy4th from source and installing with luarocks:
Method 1
git clone https://github.com/htwaijry/npy4th.git
cd npy4th
luarocks make
Method 2
luarocks install npy4th
I tried every version listed in luarocks (1.3-1, 1.3-0,...)
Getting this error:
/tmp/luarocks_npy4th-1.3-3-1149/npy4th/npy4th.cpp:213:1: error: elements of array ‘const luaL_reg npyth []’ have incomplete type
};
^
/tmp/luarocks_npy4th-1.3-3-1149/npy4th/npy4th.cpp:213:1: error: storage size of ‘npyth’ isn’t known
/tmp/luarocks_npy4th-1.3-3-1149/npy4th/npy4th.cpp: In function ‘int luaopen_libnpy4th(lua_State*)’:
/tmp/luarocks_npy4th-1.3-3-1149/npy4th/npy4th.cpp:216:40: error: ‘luaL_openlib’ was not declared in this scope
luaL_openlib(L, "libnpy4th", npyth, 0);
^
make[2]: *** [CMakeFiles/npy4th.dir/npy4th.cpp.o] Error 1
make[1]: *** [CMakeFiles/npy4th.dir/all] Error 2
make: *** [all] Error 2
Error: Build error: Failed building.
Solved it by using this AMI in AWS: https://github.com/bitfusionio/amis/blob/master/awsmrkt-bfboost-ubuntu14-cuda75-torch/