1. Errors such as newspaper
/usr/lib/libreadline.so:undefined reference to ' PC '/usr/lib/libreadline.so:undefined reference to ' Tgetflag '/usr/lib /ibreadline.so:undefined reference to ' tgetent '/usr/lib/libreadline.so:undefined reference to ' up '/usr/lib/ libreadline.so:undefined reference to ' tputs '/usr/lib/libreadline.so:undefined reference to ' Tgoto '/usr/lib/ libreadline.so:undefined reference to ' Tgetnum '/usr/lib/libreadline.so:undefined reference to ' BC '
Solve:
readline
the "Undefined compliance reference" error occurs because LUA compiles a dependent library and it relies on the ncurses
library but is not specified. You need to modify ${LUA_DIR}/src/Makefile
the Linux compiler target to append the '-lncurses ' option to the syslibs variable. After modification, the following:
Linux:
$ (make) $ (all) syscflags= "-dlua_use_linux" syslibs= "-wl,-e-ldl-lreadline-lncurses"
2, reported cannot find-lncurses
Solve:
Need to install ncurses yum install ncurses-devel 3, report lua.c:67:31:fatal error:readline/readline.h:no such file or directory address:
Description Missing Libreadline-dev Dependency package Centos:yum install Readline-develdebian:apt-get install Libreadline-dev.
Linux Install LUA related compilation error