在没有sudo的权限下怎么装lua的….

  1. download tar and unzip

    1
    2
    3
    4
    curl -R -O http:
    tar zxf lua-5.3.1.tar.gz
    cd lua-5.3.1
    make linux test
  2. cd lua folder, run make linux
    error: # not found
    sol: download readline from:

    1
    2
    3
    4
    5
    6
    curl -R -O http://git.savannah.gnu.org/cgit/readline.git/snapshot/readline-master.tar.gz
    rename to realine
    tar zxf xxx.tar.gz
    cd realine
    ./configure
    ./make
1
2
add path to src/makefile:
CC = ... -I/path/to/ -L/path/to/readline //lish
  1. make lua again
    error: symbol “tputs” and …. undefined.
    sol: http://blog.csdn.net/billfeller/article/details/40351891
    1
    in `linuxs` change SYSLIBS add -lncurses

done.

also

1
ldconfig -p | grep libnurses