Sudo apt-get install libreadline6 libreadline6-dev
Makefile:63: recipe for target 'lua' failed usr/local/lib/libreadline.so:对‘BC’未定义的引用Ĭollect2: error: ld returned 1 exit status
usr/local/lib/libreadline.so:对‘tgetflag’未定义的引用 Gcc -std=gnu99 -o lua lua.o liblua.a -lm -Wl,-E -ldl -lreadline Gcc -std=gnu99 -O2 -Wall -Wextra -DLUA_COMPAT_5_2 -DLUA_USE_LINUX -c -o lua.o lua.c