Difference between revisions of "Open5gs: Compile"

From OnnoWiki
Jump to navigation Jump to search
Line 3: Line 3:
 
Install Dependency
 
Install Dependency
  
  sudo apt install python3-pip python3-setuptools python3-wheel ninja-build \
+
  sudo apt update
 +
sudo apt -y install python3-pip python3-setuptools python3-wheel ninja-build \
 
  build-essential flex bison git libsctp-dev libgnutls28-dev \
 
  build-essential flex bison git libsctp-dev libgnutls28-dev \
 
  libgcrypt-dev libssl-dev libidn11-dev libmongoc-dev \
 
  libgcrypt-dev libssl-dev libidn11-dev libmongoc-dev \

Revision as of 15:34, 21 July 2023

Sistem Operasi Ubuntu 22.04

Install Dependency

sudo apt update
sudo apt -y install python3-pip python3-setuptools python3-wheel ninja-build \
build-essential flex bison git libsctp-dev libgnutls28-dev \
libgcrypt-dev libssl-dev libidn11-dev libmongoc-dev \
libbson-dev libyaml-dev libnghttp2-dev libmicrohttpd-dev \
libcurl4-gnutls-dev libnghttp2-dev libtins-dev libtalloc-dev meson

Clone source code dari github

cd /usr/local/src
git clone https://github.com/open5gs/open5gs

Compile menggunakan Meson

cd open5gs
meson build --prefix=`pwd`/install
ninja -C build

Cek apakah hasil compile Sudah Benar

./build/tests/attach/attach # Untuk EPC
./build/tests/registration/registration  #untuk core 5g

cd build
meson test -v

Install

cd build
ninja install
cd ../


Pranala Menarik