美文网首页
Brew install openresty 找不到 luaro

Brew install openresty 找不到 luaro

作者: leeehao | 来源:发表于2019-12-27 11:30 被阅读0次

背景

最近在写 Openresty 需要接入 Postgres,目前社区比较优秀的驱动是 pgmoon,通过 luarocks 安装依赖 Openresty 始终找不到依赖库, 以下为解决方案。

环境

  • Mac
  • brew install openresty
  • brew install luarocks
  • luarocks install pgmoon

解决方案

不要使用 brew 安装 luarocks

严格按照此步骤执行 https://openresty.org/cn/using-luarocks.html

Linux 环境暂未测试,目测没有问题。

Docker 相关

目前 openresty 的官方镜像默认安装 luarocks 请选择合适的镜像。

Linux 的解决方案

如果 linux 环境无法通过官方文档解决,请查阅 openresty Dockerfile 按照步骤进行。

相关文章

网友评论

      本文标题:Brew install openresty 找不到 luaro

      本文链接:https://www.haomeiwen.com/subject/hczroctx.html