安装open5GS时出现报错Meson test fails for 9 cases

错误产生场景

 

执行下面代码时产生错误,有9个test都失败了

$ ./build/tests/attach/attach ## EPC Only
$ ./build/tests/registration/registration ## 5G Core Only

产生原因

未安装MongoDB或者未运行MongoDB,或者未运行tun设备

解决办法

安装open5GS前要先安装MongoDB,并且运行MongoDB,设置tun设备。使用如下代码

sudo systemctl start mongod
sudo systemctl enable mongod
sudo ip tuntap add name ogstun mode tun
sudo ip addr add 10.45.0.1/16 dev ogstun
sudo ip addr add 2001:db8:cafe::1/48 dev ogstun
sudo ip link set ogstun up
posted @ 2023-11-15 15:54  S_ong  阅读(234)  评论(0)    收藏  举报