Vacant2333 commented on code in PR #10966: URL: https://github.com/apache/apisix/pull/10966#discussion_r1502144314
########## 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: this contents should'nt be removed, the user may happen this problem at other platform, we can provide a solution at another platform replace macos, eg. Ubuntu20.04(but u may need reproduce it first) ########## docs/zh/latest/building-apisix.md: ########## @@ -141,15 +103,6 @@ tar -xvf etcd-v${ETCD_VERSION}-linux-amd64.tar.gz && \ nohup etcd >/tmp/etcd.log 2>&1 & ``` -</TabItem> - -<TabItem value="mac"> - -```shell -brew install etcd -brew services start etcd -``` - Review Comment: we may need save this one, user can build and run apsix at docker, he will need install etcd by brew -- 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]
