Lua学习过程

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

发布了223 篇原创文章 · 获赞 145 · 访问量 29万+

猜你喜欢

转载自blog.csdn.net/zzhuan_1/article/details/89381405