lua5.3下载库失败

C:\Windows\System32>luarocks install rs232 Installing https://luarocks.org/rs232-0.1.0-1.src.rock

Error: Failed finding Lua library. You may need to configure LUA_LIBDIR.

C:\Windows\System32>luarocks install luaserial Installing https://luarocks.org/luaserial-0.2-1.rockspec Cloning into 'luaserial'... remote: Enumerating objects: 43, done. remote: Counting objects: 100% (29/29), done. remote: Compressing objects: 100% (20/20), done. Receiving objects: 100% (43/43), 19.88 KiB | 242.00 KiB/s, done.

Resolving deltas: 100% (16/16), done. Note: switching to '1029af39a868735bc5f09e5511a95241384f5609'.

You are in 'detached HEAD' state. You can look around, make experimental changes and commit them, and you can discard any commits you make in this state without impacting any branches by switching back to a branch.

If you want to create a new branch to retain commits you create, you may do so (now or later) by using -c with the switch command. Example:

git switch -c

Or undo this operation with:

git switch -

Turn off this advice by setting config variable advice.detachedHead to false

Submodule 'lua-compat' (https://github.com/javalikescript/lua-compat.git) registered for path 'lua-compat' Cloning into 'C:/Users/24625/AppData/Local/Temp/luarocks_luaserial-0.2-1-119/luaserial/lua-compat'... Submodule path 'lua-compat': checked out 'caeabbdc169732fb1c768b03d16c1da43a64cf10'

Error: Failed finding Lua library. You may need to configure LUA_LIBDIR.

点赞