luarocks / luarocks/luarocks

luarocks install elasticsearch not working!!

Open
#951 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

windows
Dominant language
Lua
Stars
3.7k
Forks
479
PR merge metrics
No merged PRs in 30d

Description

I am trying to install the elasticsearch client for Lua using this command "luarocks install elasticsearch" on my windows 10 , the dependency lua-cjson could not be downloaded and I am getting the following error.
"
luarocks install elasticsearch(executed the command)

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
"

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing `luarocks install elasticsearch` on Windows 10 and trace the `lua-cjson` dependency build, especially the `cl` invocation shown in the report. Check whether the failure belongs to LuaRocks or the dependency installation, then verify that the command either installs successfully or reports a clear, actionable error.

Written by the indexing model from the issue text.

Assessment

Tech stack
lua
Domain
cli, tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.