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/10 12:35:16 UTC

[GitHub] [apisix] siaron opened a new issue #6068: mac 编译2.11

siaron opened a new issue #6068:
URL: https://github.com/apache/apisix/issues/6068


   ### Issue description
   
   Installing https://luarocks.org/lualdap-1.2.6-1.src.rock
   
   Error: Failed installing dependency: https://luarocks.org/lualdap-1.2.6-1.src.rock - Could not find header file for LDAP
     No file ldap.h in /usr/include
     No file ldap.h in /include
   You may have to install LDAP in your system and/or pass LDAP_DIR or LDAP_INCDIR to the luarocks command.
   Example: luarocks install lualdap LDAP_DIR=/usr/local
   make: *** [deps] Error 1
   
   ### Environment
   
   - apisix version (cmd: `apisix version`):
   - OS (cmd: `uname -a`):
   - OpenResty / Nginx version (cmd: `nginx -V` or `openresty -V`):
   - etcd version, if have (cmd: run `curl http://127.0.0.1:9090/v1/server_info` to get the info from server-info API):
   - apisix-dashboard version, if have:
   - the plugin runner version, if the issue is about a plugin runner (cmd: depended on the kind of runner):
   - luarocks version, if the issue is about installation (cmd: `luarocks --version`):
   


-- 
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



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

Posted by GitBox <gi...@apache.org>.
kwanhur commented on issue #6068:
URL: https://github.com/apache/apisix/issues/6068#issuecomment-1023911655


   I got this trouble too, `brew info openldap` show installed dir `/usr/local/opt/openldap`, setted `LDAP_DIR` then `make deps` successfully.
   
   So, suggest to post this prerequisite.


-- 
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



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

Posted by GitBox <gi...@apache.org>.
tzssangglass commented on issue #6068:
URL: https://github.com/apache/apisix/issues/6068#issuecomment-1038127011


   > I'm curious, how did you install the openLDAP? @tzssangglass
   
   yes.
   
   > Is this a MAC specific problem?
   
   Yes, this is only required on MAC.


-- 
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



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

Posted by GitBox <gi...@apache.org>.
tzssangglass commented on issue #6068:
URL: https://github.com/apache/apisix/issues/6068#issuecomment-1038127011


   > I'm curious, how did you install the openLDAP? @tzssangglass
   
   yes.
   
   > Is this a MAC specific problem?
   
   Yes, this is only required on MAC.


-- 
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



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

Posted by GitBox <gi...@apache.org>.
Chever-John commented on issue #6068:
URL: https://github.com/apache/apisix/issues/6068#issuecomment-1038148506


   > > I'm curious, how did you install the openLDAP? @tzssangglass
   > 
   > yes.
   > 
   > > Is this a MAC specific problem?
   > 
   > Yes, this is only required on MAC.
   
   Thinks, this news is of great use to me.


-- 
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



[GitHub] [apisix] siaron edited a comment on issue #6068: request help: building failed on Mac(2.11 ldap.h)

Posted by GitBox <gi...@apache.org>.
siaron edited a comment on issue #6068:
URL: https://github.com/apache/apisix/issues/6068#issuecomment-1008881940


   1. macbook 编译apisix 执行 `LUAROCKS_SERVER=https://luarocks.cn make deps`
   ```
   Error: Failed installing dependency: https://luarocks.org/lualdap-1.2.6-1.src.rock - Could not find header file for LDAP
     No file ldap.h in /usr/local/include
     No file ldap.h in /usr/include
     No file ldap.h in /include
   You may have to install LDAP in your system and/or pass LDAP_DIR or LDAP_INCDIR to the luarocks command.
   Example: luarocks install lualdap LDAP_DIR=/usr/local
   make: *** [deps] Error 1
   ```
   2. 已经安装`brew install openldap`
   3. 编译安装时可以指定`LDAP_DIR=xxx`吗?


-- 
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



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

Posted by GitBox <gi...@apache.org>.
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



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

Posted by GitBox <gi...@apache.org>.
kwanhur commented on issue #6068:
URL: https://github.com/apache/apisix/issues/6068#issuecomment-1024833287


   > > I got this trouble too, `brew info openldap` show installed dir `/usr/local/opt/openldap`, setted `LDAP_DIR` then `make deps` successfully.
   > > So, suggest to post this prerequisite.
   > 
   > Hi @kwanhur, Would you like to improve the docs?
   
   yep, #6227 


-- 
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



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

Posted by GitBox <gi...@apache.org>.
juzhiyuan commented on issue #6068:
URL: https://github.com/apache/apisix/issues/6068#issuecomment-1008847253


   Hi @siaron, please provide the information:
   
   1. Which documentation you're following to build? (Please paste the link here);
   2. What are your steps to install it? so we could try to reproduce.


-- 
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



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

Posted by GitBox <gi...@apache.org>.
juzhiyuan commented on issue #6068:
URL: https://github.com/apache/apisix/issues/6068#issuecomment-1008847620


   I noticed the same error like https://github.com/apache/apisix/pull/3894#issuecomment-937479073 please have a check


-- 
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



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

Posted by GitBox <gi...@apache.org>.
Chever-John commented on issue #6068:
URL: https://github.com/apache/apisix/issues/6068#issuecomment-1038148506


   > > I'm curious, how did you install the openLDAP? @tzssangglass
   > 
   > yes.
   > 
   > > Is this a MAC specific problem?
   > 
   > Yes, this is only required on MAC.
   
   Thinks, this news is of great use to me.


-- 
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



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

Posted by GitBox <gi...@apache.org>.
leslie-tsang commented on issue #6068:
URL: https://github.com/apache/apisix/issues/6068#issuecomment-1015012721


   @juzhiyuan Consider solved. Feel free to reopen it if needed.


-- 
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



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

Posted by GitBox <gi...@apache.org>.
juzhiyuan closed issue #6068:
URL: https://github.com/apache/apisix/issues/6068


   


-- 
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



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

Posted by GitBox <gi...@apache.org>.
juzhiyuan commented on issue #6068:
URL: https://github.com/apache/apisix/issues/6068#issuecomment-1023958848


   > I got this trouble too, `brew info openldap` show installed dir `/usr/local/opt/openldap`, setted `LDAP_DIR` then `make deps` successfully.
   > 
   > So, suggest to post this prerequisite.
   
   Hi @kwanhur, Would you like to improve the docs?


-- 
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



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

Posted by GitBox <gi...@apache.org>.
tzssangglass commented on issue #6068:
URL: https://github.com/apache/apisix/issues/6068#issuecomment-1009516315


   my `~/.luarocks/config-5.1.lua` is like
   
   ```
   variables = {
      LDAP_DIR = "/usr/local/opt/openldap",
      LDAP_INCDIR = "/usr/local/opt/openldap/include",
      OPENSSL_INCDIR = "/usr/local/opt/openresty-openssl111/include",
      OPENSSL_LIBDIR = "/usr/local/opt/openresty-openssl111/lib",
      PCRE_DIR = "/usr/local/Cellar/pcre/8.45",
      PCRE_INCDIR = "/usr/local/Cellar/pcre/8.45/include"
   }
   ```


-- 
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



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

Posted by GitBox <gi...@apache.org>.
siaron commented on issue #6068:
URL: https://github.com/apache/apisix/issues/6068#issuecomment-1008882238


   > 2\. brew install openldap
   
   有没有mac的解决方式


-- 
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



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

Posted by GitBox <gi...@apache.org>.
tzssangglass commented on issue #6068:
URL: https://github.com/apache/apisix/issues/6068#issuecomment-1009517605


   In fact, if you don't understand the build process, it is not recommended to develop on mac, there will be many incompatibilities and you will need to maintain it yourself.


-- 
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



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

Posted by GitBox <gi...@apache.org>.
Chever-John commented on issue #6068:
URL: https://github.com/apache/apisix/issues/6068#issuecomment-1036330833


   Is this a MAC specific problem?
   I'm curious, how did you install the openLDAP? @tzssangglass
   Guess that:
   ```
   brew install openldap
   &
   luarocks config variables.LDAP_DIR /usr/local/Cellar/openldap/2.5.6
   ```
   
   
   > my `~/.luarocks/config-5.1.lua` is like
   > 
   > ```
   > variables = {
   >    LDAP_DIR = "/usr/local/opt/openldap",
   >    LDAP_INCDIR = "/usr/local/opt/openldap/include",
   >    OPENSSL_INCDIR = "/usr/local/opt/openresty-openssl111/include",
   >    OPENSSL_LIBDIR = "/usr/local/opt/openresty-openssl111/lib",
   >    PCRE_DIR = "/usr/local/Cellar/pcre/8.45",
   >    PCRE_INCDIR = "/usr/local/Cellar/pcre/8.45/include"
   > }
   > ```
   
   


-- 
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



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

Posted by GitBox <gi...@apache.org>.
siaron commented on issue #6068:
URL: https://github.com/apache/apisix/issues/6068#issuecomment-1008881940


   1. macbook 编译apisix 执行 `LUAROCKS_SERVER=https://luarocks.cn make deps`
   ```
   Error: Failed installing dependency: https://luarocks.org/lualdap-1.2.6-1.src.rock - Could not find header file for LDAP
     No file ldap.h in /usr/local/include
     No file ldap.h in /usr/include
     No file ldap.h in /include
   You may have to install LDAP in your system and/or pass LDAP_DIR or LDAP_INCDIR to the luarocks command.
   Example: luarocks install lualdap LDAP_DIR=/usr/local
   make: *** [deps] Error 1
   ```
   2. 已经安装`brew install openldap`


-- 
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



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

Posted by GitBox <gi...@apache.org>.
tokers commented on issue #6068:
URL: https://github.com/apache/apisix/issues/6068#issuecomment-1009512871


   @siaron The `LDAP_DIR` can be specified to the LuaRocks config file, see https://github-wiki-see.page/m/luarocks/luarocks/wiki/Config-file-format#Variables for details.


-- 
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



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

Posted by GitBox <gi...@apache.org>.
leslie-tsang commented on issue #6068:
URL: https://github.com/apache/apisix/issues/6068#issuecomment-1009541276


   Hello there, it's not recommended to develop on unfamiliar operating systems.
   Introducing multiple unknowns at the same time, it's going to be a long day to figure out if something is wrong or not.
   
   > 编译安装时可以指定LDAP_DIR=xxx吗?
   
   Sure, `LDAP_DIR` defined by LuaRocks config file, more detail in [luarocks wiki](https://github.com/luarocks/luarocks/wiki/Config-file-format)


-- 
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