Open DarthJahus opened 6 years ago
Building on Windows subsystem for Linux, fails with:
/luadec/lua-5.3$ sudo make linux cd src && make linux make[1]: Entering directory '/mnt/c/Users/jahus/lua/luadec/lua-5.3/src' make all SYSCFLAGS="-DLUA_USE_LINUX" SYSLIBS="-Wl,-E -ldl -lreadline" make[2]: Entering directory '/mnt/c/Users/jahus/lua/luadec/lua-5.3/src' gcc -std=gnu99 -O2 -Wall -Wextra -DLUA_COMPAT_5_2 -DLUA_USE_LINUX -c -o lua.o lua.c lua.c:80:31: fatal error: readline/readline.h: No such file or directory compilation terminated. <builtin>: recipe for target 'lua.o' failed make[2]: *** [lua.o] Error 1 make[2]: Leaving directory '/mnt/c/Users/jahus/lua/luadec/lua-5.3/src' Makefile:110: recipe for target 'linux' failed make[1]: *** [linux] Error 2 make[1]: Leaving directory '/mnt/c/Users/jahus/lua/luadec/lua-5.3/src' Makefile:55: recipe for target 'linux' failed make: *** [linux] Error 2
What are the prerequisites? Lua 5.3 is installed.
It seems to require readline GNU library and ncurses.
readline
ncurses
sudo apt install libreadline6-dev sudo apt install libncurses5-dev
Building on Windows subsystem for Linux, fails with:
What are the prerequisites? Lua 5.3 is installed.