Skip to content

can not install on windows #463

@mtfcd

Description

@mtfcd

log from lazy.nvim:

 rest.nvim 📂 http 
        C:\Users\cc\scoop\apps\lua51\current\lua5.1.exe: cannot open e  -e io.write(_VERSION:sub(5)) : No such file or directory
        C:\Users\cc\scoop\apps\lua51\current\lua5.1.exe: cannot open e  -e io.write(_VERSION:sub(5)) : No such file or directory

        Error: Lua 5.1 interpreter not found at C:/Users/cc/scoop/apps/lua/current

        Please set your Lua interpreter with:

           luarocks --lua-version=5.1 --local config variables.LUA <d:\path\lua.exe>
        Failed installing rest.nvim with `luarocks`.

        --------------------------------------------------------------------------------

        Trying to build from source.
        C:\Users\cc\scoop\apps\lua51\current\lua5.1.exe: cannot open e  -e io.write(_VERSION:sub(5)) : No such file or directory
        C:\Users\cc\scoop\apps\lua51\current\lua5.1.exe: cannot open e  -e io.write(_VERSION:sub(5)) : No such file or directory

        Error: Lua 5.1 interpreter not found at C:/Users/cc/scoop/apps/lua/current

        Please set your Lua interpreter with:

           luarocks --lua-version=5.1 --local config variables.LUA <d:\path\lua.exe>

I hava those installed use scoop:

lua                 5.4.7-2       main       2024-09-15 19:18:04
lua-for-windows     5.1.5-52      main       2024-09-13 00:40:11
lua-language-server 3.10.5        main       2024-08-25 15:21:46
lua51               5.1.5         versions   2024-09-15 19:19:19
luarocks            3.11.1        main       2024-09-15 19:18:05

lua51 is installed at:

    Directory: C:\Users\cc\scoop\apps\lua51\5.1.5

Mode                 LastWriteTime         Length Name
----                 -------------         ------ ----
-a---            2014/5/6     3:54          17920 lua5.1.exe

so I run luarocks --lua-version=5.1 --local config variables.LUA 'C:\Users\cc\scoop\apps\lua51\5.1.5\lua5.1.exe'. and I got:
image

escaped \ in path to: 'C:\\Users\\cc\\scoop\\apps\\lua51\\5.1.5\\lua5.1.exe'. got the same.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions