1.下载代码
参考:https://gitlab.eurecom.fr/oai/cn5g/oai-cn5g-amf/-/wikis/Installation
git clone https://gitlab.eurecom.fr/oai/cn5g/oai-cn5g-amf.git
git clone https://gitee.com/openair5gcn/oai-cn5g-amf.git
git config --global http.postBuffer 524288000
2.安装依赖&编译
2.1 amf编译
cd oai-cn5g-amf/
cd ./build/scripts
./build_amf -I -f
./build_amf -c -V -b Debug
git clone https://github.com/nlohmann/json.git
cd json/
mkdir build
cd build/
cmake ..
make make install
2.2 ausf编译
cd oai-cn5g-ausf/
cd ./build/scripts
./build_ausf -I -f
./build_ausf -c -V -b Debug
2.3 upf编译
cd oai-cn5g-upf/
cd ./build/scripts
./build_upf -I -f
./build_upf -c -V -b Debug