Difference between revisions of "Open5gs: Compile"

From OnnoWiki
Jump to navigation Jump to search
Line 1: Line 1:
 
Install Dependencies  
 
Install Dependencies  
  
  sudo apt install python3-pip python3-setuptools python3-wheel ninja-build build-essential flex bison git libsctp-dev libgnutls28-dev  
+
  sudo apt install python3-pip python3-setuptools python3-wheel ninja-build \
  libgcrypt-dev libssl-dev libidn11-dev libmongoc-dev libbson-dev libyaml-dev libnghttp2-dev libmicrohttpd-dev libcurl4-gnutls-dev  
+
build-essential flex bison git libsctp-dev libgnutls28-dev \
libnghttp2-dev libtins-dev libtalloc-dev meson
+
  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
  
Clone Dari Source
 
 
  git clone https://github.com/open5gs/open5gs
 
  git clone https://github.com/open5gs/open5gs
  
Compile pakai Meson
+
Compile menggunakan Meson
 +
 
 
  cd open5gs
 
  cd open5gs
 
  meson build --prefix=`pwd`/install
 
  meson build --prefix=`pwd`/install
 
  ninja -C build
 
  ninja -C build
  
Cek apakah Compile Sudah Benar
+
Cek apakah hasil compile Sudah Benar
 +
 
 
  ./build/tests/attach/attach # Untuk EPC
 
  ./build/tests/attach/attach # Untuk EPC
 
  ./build/tests/registration/registration  #untuk core 5g
 
  ./build/tests/registration/registration  #untuk core 5g
Line 20: Line 25:
 
  meson test -v
 
  meson test -v
 
   
 
   
 +
Install
 +
 
  cd build
 
  cd build
 
  ninja install
 
  ninja install
 
  cd ../
 
  cd ../

Revision as of 13:24, 14 December 2022

Install Dependencies

sudo apt 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

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 ../