编译安装lua 时 lua.c:67:31: fatal error: readline/readline.h: No such file or directory

发布于 2020-05-06  52 次阅读


问题描述:

编译安装lua

tar-zxvf lua-5.2.0.tar.gz

cd lua-5.2.0

make linux

make install

完成安装.

结果遇到下面的错误:

lua.c:67:31: fatal error: readline/readline.h: No such file or directory


解决方法:

缺少libreadline-dev依赖包

centos: yum install readline-devel

debian: apt-get install libreadline-dev.

Back Top


一沙一世界,一花一天堂。君掌盛无边,刹那成永恒。