- 编译时显示错误:
configure: error: readline library not found
- 确定编译readline
https://blog.csdn.net/quantum7/article/details/106175380
- 看看config.log
configure:11829: gcc -o conftest -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Werror=vla -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -Wno-format-truncation -I/home/quantum6/build_libs/include -fPIC -D_GNU_SOURCE -L/home/quantum6/build_libs/lib conftest.c -lreadline -lrt -lcrypt -ldl -lm >&5 /home/quantum6/build_libs/lib/libreadline.so: undefined reference to `tputs' /home/quantum6/build_libs/lib/libreadline.so: undefined reference to `tgoto' /home/quantum6/build_libs/lib/libreadline.so: undefined reference to `tgetflag' /home/quantum6/build_libs/lib/libreadline.so: undefined reference to `UP' /home/quantum6/build_libs/lib/libreadline.so: undefined reference to `tgetent' /home/quantum6/build_libs/lib/libreadline.so: undefined reference to `tgetnum' /home/quantum6/build_libs/lib/libreadline.so: undefined reference to `PC'
- 需要编译ncurses