当前位置 : 主页 > 网络编程 > lua >

lua 安装

来源:互联网 收集:自由互联 发布时间:2021-06-23
1:下载安装 curl -R -O http://www.lua.org/ftp/lua-5.3.0.tar.gztar zxf lua-5.3.0.tar.gzcd lua-5.3.0make linux testmake install 2:安装异常解决方案: lua.c:80:31: fatal error: readline/readline.h: No such file or directory #inc

1:下载安装

  

curl -R -O http://www.lua.org/ftp/lua-5.3.0.tar.gz
tar zxf lua-5.3.0.tar.gz
cd lua-5.3.0
make linux test
make install

  2:安装异常解决方案:

  

lua.c:80:31: fatal error: readline/readline.h: No such file or directory
 #include <readline/readline.h>
                               ^
compilation terminated.
make[2]: *** [lua.o] Error 1
make[2]: Leaving directory `/home/workspace/lua-5.3.0/src‘
make[1]: *** [linux] Error 2
make[1]: Leaving directory `/home/workspace/lua-5.3.0/src‘
make: *** [linux] Error 2

  解决方法:

    缺少libreadline-dev依赖包    centos: yum install readline-devel    debian: apt-get install libreadline-dev

网友评论