Lapis 国内相关的内容比较少,我有开发一个框架,需要的朋友可以加我,找我要。
以下我记录一下在wsl 开发环镜的 , 在真机上安装的时候就非常的省力,我通常使用ubuntu 系统,所以就主要是讲这上面的,其它系统估计也差不多。
仅作为记录,也方便下次使用,也可以随便给需要帮助的朋友们。
officer website:Lapis - A web framework for Lua
正常开发的时候,需要看一下doc,所以直接打看来manual
--------------------------------------------------------------------------------------
一、安装Lapis 第一步是安装openresty ,这是基于openresty的
此方法是使用 apt install openresty 的方式安装:(OpenResty - OpenResty® Linux 包)
1. sudo apt-get update
2. wget -qO - https://openresty.org/package/pubkey.gpg | sudo apt-key add -
3.sudo add-apt-repository -y "deb http://openresty.org/package/ubuntu $(lsb_release -sc) main"
4. sudo apt-get update
5.sudo apt-get install openresty
检查 安装 是否成功:
openresty -v
二、安装 luarocks
sudo apt install luarocks (直播安装完成即可)
三、安装 Lapis
luarocks install lapis
不同的系统和版本,安装会出现不同的问题,你们根据提示去处理相关的库是否安装完整,一般来说,wsl 版本会出现ssl 这些问题,补一下即可。
sudo luarocks install pgmoon
sudo luarocks install luasocket
//
方法一:
sudo apt-get install libssl-dev
luarocks install openssl
sudo luarocks install luaossl
方法2:(不推荐,用源码)
git clone https://github.com/wahern/luaossl.git
下载安装
sudo make & make install
-------------------------------------------------------------
OK ,到此结束!
后续会更新相关的开发,记得关注我。