lua学习笔记(1)——编译配置

mac os x

  1. curl -O http://www.lua.org/ftp/lua-5.3.0.tar.gz
  2. tar zxf lua-5.3.0.tar.gz
  3. cd lua-5.3.0
  4. make macosx
  5. sudo make install
  6. lua -v
  7. cd src
  8. ctags -R *

ubuntu server

  1. curl -O http://www.lua.org/ftp/lua-5.3.0.tar.gz
  2. tar zxf lua-5.3.0.tar.gz
  3. cd lua-5.3.0
  4. sudo apt-get install libreadline-dev(lua.c:80:31: fatal error: readline/readline.h: No such file or directory)
  5. make linux
  6. sudo make install
  7. lua -v
  8. cd src
  9. ctags -R *

uninstall

  1. cd lua-5.3.0
  2. sudo make uninstall

你可能感兴趣的:(lua)