Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion apisix-master-0.rockspec
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,6 @@ dependencies = {
"ext-plugin-proto = 0.6.1",
"casbin = 1.41.8-1",
"inspect == 3.1.1",
"lualdap = 1.2.6-1",
"lua-resty-rocketmq = 0.3.0-0",
"opentelemetry-lua = 0.2-3",
"net-url = 0.9-1",
Expand Down
2 changes: 1 addition & 1 deletion ci/common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ GRPC_SERVER_EXAMPLE_VER=20210819

linux_get_dependencies () {
apt update
apt install -y cpanminus build-essential libncurses5-dev libreadline-dev libssl-dev perl libpcre3 libpcre3-dev libldap2-dev
apt install -y cpanminus build-essential libncurses5-dev libreadline-dev libssl-dev perl libpcre3 libpcre3-dev
}

function start_grpc_server_example() {
Expand Down
2 changes: 1 addition & 1 deletion ci/performance_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ set -ex

install_dependencies() {
apt-get -y update --fix-missing
apt-get -y install lua5.1 liblua5.1-0-dev libldap2-dev
apt-get -y install lua5.1 liblua5.1-0-dev
export_or_prefix
export OPENRESTY_VERSION=source
./ci/linux-install-openresty.sh
Expand Down
20 changes: 0 additions & 20 deletions ci/pod/docker-compose.plugin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -123,26 +123,6 @@ services:
networks:
skywalk_net:


## OpenLDAP
openldap:
image: bitnami/openldap:2.5.8
environment:
- LDAP_ADMIN_USERNAME=amdin
- LDAP_ADMIN_PASSWORD=adminpassword
- LDAP_USERS=user01,user02
- LDAP_PASSWORDS=password1,password2
- LDAP_ENABLE_TLS=yes
- LDAP_TLS_CERT_FILE=/certs/localhost_slapd_cert.pem
- LDAP_TLS_KEY_FILE=/certs/localhost_slapd_key.pem
- LDAP_TLS_CA_FILE=/certs/apisix.crt
ports:
- "1389:1389"
- "1636:1636"
volumes:
- ./t/certs:/certs


## Grafana Loki
loki:
image: grafana/loki:2.8.0
Expand Down
37 changes: 0 additions & 37 deletions docs/en/latest/building-apisix.md
Original file line number Diff line number Diff line change
Expand Up @@ -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/`.

:::

To uninstall the APISIX runtime, run:

```shell
Expand Down
37 changes: 0 additions & 37 deletions docs/zh/latest/building-apisix.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,43 +70,6 @@ make install

该命令将安装 APISIX 运行时依赖的 Lua 库以及 `apisix-runtime` 和 `apisix` 命令。

:::note

如果你在运行 `make deps` 时收到类似 `Could not find header file for LDAP/PCRE/openssl` 的错误消息,请使用此解决方案。

`luarocks` 支持自定义编译时依赖项(请参考:[配置文件格式](https://github.com/luarocks/luarocks/wiki/Config-file-format))。你可以使用第三方工具安装缺少的软件包并将其安装目录添加到 `luarocks` 变量表中。此方法适用于 macOS、Ubuntu、CentOS 和其他类似操作系统。

此处仅给出 macOS 的具体解决步骤,其他操作系统的解决方案类似:

1. 安装 `openldap`:

```shell
brew install openldap
```

2. 使用以下命令命令找到本地安装目录:

```shell
brew --prefix openldap
```

3. 将路径添加到项目配置文件中(选择两种方法中的一种即可):
1. 你可以使用 `luarocks config` 命令设置 `LDAP_DIR`:

```shell
luarocks config variables.LDAP_DIR /opt/homebrew/cellar/openldap/2.6.1
```

2. 你还可以更改 `luarocks` 的默认配置文件。打开 `~/.luaorcks/config-5.1.lua` 文件并添加以下内容:

```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/` 是 `brew` 在 macOS(Apple Silicon) 上安装 `openldap` 的默认位置。`/usr/local/opt/openldap/` 是 brew 在 macOS(Intel) 上安装 openldap 的默认位置。

:::

如果你不再需要 APISIX,可以执行以下命令卸载:

```shell
Expand Down
2 changes: 0 additions & 2 deletions t/chaos/utils/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ RUN set -x \
pkgconfig \
cmake \
git \
openldap-dev \
pcre-dev \
sudo \
&& cd apisix \
Expand All @@ -51,7 +50,6 @@ RUN set -x \
bash \
curl \
libstdc++ \
openldap \
pcre \
tzdata

Expand Down