lua 安装

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

猜你喜欢

转载自www.cnblogs.com/zhaohu/p/9402793.html