Lua学习过程

≯℡__Kan透↙ 提交于 2020-01-14 17:33:31

LUA入门

1) 以w3c文档为主线开展

https://www.w3cschool.cn/lua/lua-environment.html

2)安装以及语法使用:

make linux test?

安装过程过程出现问题

编译中断。
make[2]: *** [lua.o] 错误 1
make[2]: 离开目录“/u02/lua-5.3.0/src”
make[1]: *** [linux] 错误 2
make[1]: 离开目录“/u02/lua-5.3.0/src”
make: *** [linux] 错误 2
[root@localhost lua-5.3.0]# 
[root@localhost lua-5.3.0]# sudo apt-get install libreadline-dev 
sudo: apt-get:找不到命令

执行 yum install libtermcap-devel ncurses-devel libevent-devel readline-devel

安装成功

 

重新安装成功

 

3)第一个helloword成功

4)Lua 基本语法

查找


安装openresty

 

http://openresty.org/cn/linux-packages.html

 

5)CentOS

 

配置安装目录及需要激活的组件。使用选项 --prefix=install_path,指定安装目录(默认为/usr/local/openresty

 

8)开源作者采访

https://www.oschina.net/question/28_60461

 

完成helloword

https://moonbingbing.gitbooks.io/openresty-best-practices/content/openresty/helloworld.html

 

 

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!