[DOCS] Update installation guide (#3681)

to conditionally install `libidn-dev` or `libidn11-dev`,
depending on availability, and clarify common dependencies for Debian/Ubuntu.
This commit is contained in:
Sukchan Lee 2025-01-22 17:53:36 +09:00
parent df11b05a1e
commit 81f69b436c

View file

@ -58,10 +58,19 @@ $ sudo ip link set ogstun up
### Building Open5GS
---
Install the dependencies for building the source code.
Install the common dependencies for building the source code.
```bash
$ sudo apt install python3-pip python3-setuptools python3-wheel ninja-build build-essential flex bison git cmake libsctp-dev libgnutls28-dev libgcrypt-dev libssl-dev libidn-dev libmongoc-dev libbson-dev libyaml-dev libnghttp2-dev libmicrohttpd-dev libcurl4-gnutls-dev libnghttp2-dev libtins-dev libtalloc-dev meson
$ sudo apt install python3-pip python3-setuptools python3-wheel ninja-build build-essential flex bison git cmake libsctp-dev libgnutls28-dev libgcrypt-dev libssl-dev libmongoc-dev libbson-dev libyaml-dev libnghttp2-dev libmicrohttpd-dev libcurl4-gnutls-dev libnghttp2-dev libtins-dev libtalloc-dev meson
```
Install libidn-dev or libidn11-dev Depending on Your System
```bash
if apt-cache show libidn-dev > /dev/null 2>&1; then
sudo apt-get install -y --no-install-recommends libidn-dev
else
sudo apt-get install -y --no-install-recommends libidn11-dev
fi
```
Git clone.