DhavalKapil / elasticsearch-lua

Lua client for Elasticsearch
http://elasticsearch-lua.readthedocs.io/
MIT License
150 stars 38 forks source link

luarocks install elasticsearch not working #33

Open adityavats007 opened 5 years ago

adityavats007 commented 5 years ago

I tried installing Elastic search using the command luarocks install elasticsearch, but every time I got this error "luarocks install elasticsearch

Installing http://luarocks.org/repositories/rocks/elasticsearch-1.0.0-1.src.rock...

Missing dependencies for elasticsearch: lua-cjson

cl /MD /O2 -c -Folua_cjson.obj -IC:/Program Files (x86)/Lua/5.1/include lua_cjson.c -DDISABLE_INVALID_NUMBERS -DUSE_INTERNAL_ISINF 'cl' is not recognized as an internal or external command, operable program or batch file.

Error: Failed installing dependency: http://luarocks.org/repositories/rocks/lua-cjson-2.1.0.6-1.src.rock - Build error: Failed compiling object lua_cjson.obj <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< " I tried installing the missing dependency using "luarocks install lua-cjson" but it could not install the dependency. @pmusa @DhavalKapil

pmusa commented 5 years ago

Sorry, this project is not maintained anymore. Unfortunately, we don't have the time and there is not enough interest from the community. If you want to be the new maintainer, we can talk about it.

cheers

neilcook commented 5 years ago

I have dependencies on this code for various projects, so I've forked it and I maintain it there: https://github.com/PowerDNS/elasticsearch-lua

I've also created a new luarock https://luarocks.org/modules/neilcook/elasticsearch-lua

This version drops testing and support for elasticsearch <6.x, and also drops lua 5.2 and 5.3 support (I only use lua 5.1/luajit). The lua support issue is mainly due to cjson not supporting >lua 5.1.

Feel free to try it out.