Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

luarocks does not work on windows when trying to install luacurl #100

Closed
rayaman opened this issue Jun 29, 2017 · 3 comments
Closed

luarocks does not work on windows when trying to install luacurl #100

rayaman opened this issue Jun 29, 2017 · 3 comments

Comments

@rayaman
Copy link

rayaman commented Jun 29, 2017

C:\Windows\System32>luarocks install Lua-cURL --server=https://luarocks.org/dev
C:\Program Files (x86)\Lua\5.1\lua: C:\Program Files (x86)\Lua\5.1\lua/luarocks\fs.lua:37: attempt to concatenate local
'loaded_platform' (a nil value)
stack traceback:
C:\Program Files (x86)\Lua\5.1\lua/luarocks\fs.lua:37: in main chunk
[C]: in function 'require'
...rogram Files (x86)\Lua\5.1\lua\luarocks\command_line.lua:7: in main chunk
[C]: in function 'require'
C:\Program Files (x86)\Lua\5.1\luarocks.lua:3: in main chunk
[C]: at 0x004020f0

What do you think the problem might be?

@rayaman
Copy link
Author

rayaman commented Jun 29, 2017

Fixed it by changing the command to: luarocks install lua-curl --server=https://luarocks.org/dev
the upper case Lua-cURL was causing the error

@rayaman rayaman closed this as completed Jun 29, 2017
@moteus
Copy link
Member

moteus commented Jun 30, 2017

This is known feature of LuaRocks. You have to use lower case in command. Even if module has upper case in its name. Not sure is it documented though.
Just curious. Did your LuaRocks uses wget to get archive or you install LuaSec.
When I try install I fail because of wget can not download archive.
Also why you need dev version. In fact in dev I have only one bug fix reletad with HTTP2

@rayaman
Copy link
Author

rayaman commented Jun 30, 2017

Luarocks didnt use wget i was able to get luasec to work. It worked after i made it lowercase and i updated to the latest version of luarocks.

I like using the latest even if it ts dev stuff

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants