zoukankan      html  css  js  c++  java
  • 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

  • 相关阅读:
    栈和队列
    链表
    map
    二叉平衡树旋转
    二叉排序树详情
    红黑树详情
    查并集
    动态规划
    位操作
    字典树
  • 原文地址:https://www.cnblogs.com/zhaohu/p/9402793.html
Copyright © 2011-2022 走看看