opencmit2 commented on code in PR #10966: URL: https://github.com/apache/apisix/pull/10966#discussion_r1510520727
########## docs/en/latest/building-apisix.md: ########## @@ -69,43 +69,6 @@ make install This will install the runtime-dependent Lua libraries and `apisix-runtime` the `apisix` CLI tool. -:::note - -If you get an error message like `Could not find header file for LDAP/PCRE/openssl` while running `make deps`, use this solution. - -`luarocks` supports custom compile-time dependencies (See: [Config file format](https://github.com/luarocks/luarocks/wiki/Config-file-format)). You can use a third-party tool to install the missing packages and add its installation directory to the `luarocks`' variables table. This method works on macOS, Ubuntu, CentOS, and other similar operating systems. - -The solution below is for macOS but it works similarly for other operating systems: - -1. Install `openldap` by running: - - ```shell - brew install openldap - ``` - -2. Locate the installation directory by running: - - ```shell - brew --prefix openldap - ``` - -3. Add this path to the project configuration file by any of the two methods shown below: - 1. You can use the `luarocks config` command to set `LDAP_DIR`: - - ```shell - luarocks config variables.LDAP_DIR /opt/homebrew/cellar/openldap/2.6.1 - ``` - - 2. You can also change the default configuration file of `luarocks`. Open the file `~/.luaorcks/config-5.1.lua` and add the following: - - ```shell - variables = { LDAP_DIR = "/opt/homebrew/cellar/openldap/2.6.1", LDAP_INCDIR = "/opt/homebrew/cellar/openldap/2.6.1/include", } - ``` - - `/opt/homebrew/cellar/openldap/` is default path `openldap` is installed on Apple Silicon macOS machines. For Intel machines, the default path is `/usr/local/opt/openldap/`. - -::: - Review Comment: @monkeyDluffy6017 I have retained this section of the document and added this some notes . reviewed the historical issues and noticed that only Mac users have encountered this problem. I don't fully comprehend the reference value for other system。 -- 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: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
