You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by GitBox <gi...@apache.org> on 2022/01/13 09:33:11 UTC

[GitHub] [apisix] xuminwlt commented on issue #6068: request help: building failed on Mac(2.11 ldap.h)

xuminwlt commented on issue #6068:
URL: https://github.com/apache/apisix/issues/6068#issuecomment-1011956319


   macos下也可以自行安装部分依赖
   
   1. Openresty:用于编译和运行部分代码,单元测试时使用openresty下的nginx环境变量。
   
   ```
   brew install openresty
   ```
   
   2. luarocks:用于编译和运行时的lua依赖,其他环境参考:
   
      https://github.com/apache/apisix/blob/master/utils/linux-install-luarocks.sh。
   
   ```
   brew install luarocks
   ```
   
   3. openldap
   
   ```
   brew install openldap
   #将ldap加入到luarocks环境
   luarocks config variables.LDAP_DIR /usr/local/Cellar/openldap/2.5.6
   ```
   
   4. 创建ldap依赖:luarocks参考:https://github.com/luarocks/luarocks/wiki/config
   
   ```
   #apisix需要ldap的依赖才能编译运行
   luarocks lua_version 5.1
   luarocks install lualdap
   ```
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org