lua编译安装时readline/readline.h出错解决办法

编译lua时出错,提示:lua.c:80:31: fatal error: readline/readline.h: No such file or directory

出错原因:缺少libreadline-dev依赖包

解决办法:
CentOS: yum install readline-devel
ubuntu: apt-get install libreadline-dev