Luarocks不会让我安装luaposix
问题描述:
我试图建立luaposix与luarocks。我这样做是这样的:Luarocks不会让我安装luaposix
luarocks install luaposix
但当过程已接近完成,在控制台中,我可以看到下面的文字:
Installing https://luarocks.org/luaposix-33.4.0-1.src.rock
./configure LUA='lua5.1.exe' LUA_INCLUDE='-Ic:/lua/include' --prefix='c:\lua\sys
tree/lib/luarocks/rocks/luaposix/33.4.0-1' --libdir='c:\lua\systree/lib/luarocks
/rocks/luaposix/33.4.0-1/lib' --datadir='c:\lua\systree/lib/luarocks/rocks/luapo
six/33.4.0-1/lua' --datarootdir='c:\lua\systree/lib/luarocks/rocks/luaposix/33.4
.0-1' && make clean all
(here is text about command '.' cannot be found)
Error: Build error: Failed building.
我应该怎么办?我只是开始安装lua库(对我来说,它实际上非常复杂的过程)。
答
的luaposix Github的页面表示:
这是一个对POSIX LuaJIT,Lua的5.1,5.2和5.3的结合;像大多数库一样,它只是绑定到底层系统上的C API,所以它不适用于非POSIX系统。
Windows是一个非POSIX系统。您所描述的错误是因为configure
命令的语法:
./configure LUA='lua5.1.exe' [...]
的./
在Windows命令提示符下不支持。例如:
C:\Lua53>./lua
'.' is not recognized as an internal or external command, operable program or batch file.
这就是它!谢谢! –