@@ -79,10 +79,11 @@ if [ ! -f "options.yaml" ]; then
7979 echo " " >> " options.yaml"
8080 echo " # Configure the Single Network Slice Selection Assistance Information (S-NSSAI)" >> " options.yaml"
8181 echo " # NOTE: \" sst\" and \" sd\" are interpreted as hexadecimal values (no 0x prefix)." >> " options.yaml"
82- echo " sst: 1" >> " options.yaml"
83- echo " sd: 000001" >> " options.yaml"
82+ echo " slices:" >> " options.yaml"
83+ echo " - sst: 1" >> " options.yaml"
84+ echo " sd: FFFFFF" >> " options.yaml"
8485 echo " " >> " options.yaml"
85- echo " # If core_to_use=open5gs, false means AMF will use the default 127.0.0.5, true means it will use the hostname IP" >> " options.yaml"
86+ echo " # If false, AMF will use a local IP, otherwise it will use the hostname IP" >> " options.yaml"
8687 echo " expose_amf_over_hostname: false" >> " options.yaml"
8788 echo " " >> " options.yaml"
8889 echo " # If core_to_use=open5gs, toggle whether or not to include the Security Edge Protection Proxies (SEPP1 and SEPP2)" >> " options.yaml"
@@ -177,7 +178,7 @@ if [ ! -d "open5gs" ]; then
177178 ./install_scripts/git_clone.sh https://github.com/open5gs/open5gs.git
178179fi
179180
180- cd $SCRIPT_DIR /open5gs
181+ cd " $SCRIPT_DIR /open5gs"
181182
182183echo
183184echo
@@ -214,7 +215,8 @@ sudo usermod -a -G open5gs open5gs
214215echo " Installing dependencies for building Open5GS..."
215216
216217# Code from (https://open5gs.org/open5gs/docs/guide/02-building-open5gs-from-sources#building-open5gs):
217- sudo env $APTVARS apt-get install -y 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 libmicrohttpd-dev libcurl4-gnutls-dev libnghttp2-dev libtins-dev libtalloc-dev meson
218+ sudo env $APTVARS apt-get install -y 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 libmicrohttpd-dev libcurl4-gnutls-dev libnghttp2-dev libtins-dev libtalloc-dev
219+ sudo -H pip3 install --upgrade meson # Ensure pip3 version overrides apt version to prevent segmentation faults
218220if apt-cache show libidn-dev > /dev/null 2>&1 ; then
219221 sudo env $APTVARS apt-get install -y --no-install-recommends libidn-dev
220222else
@@ -226,7 +228,7 @@ rm -rf build
226228# Check if Open5GS has already been built and installed
227229if [ ! -d " build" ]; then
228230 echo " Compiling Open5GS with Meson..."
229- meson build --prefix=" $( pwd) /install" # -Dc_args="-fPIC" -Dc_link_args=""
231+ meson build --prefix=" $( pwd) /install" -Dc_args=" -fPIC" -Dcpp_args= " -fPIC " - Dc_link_args=" -fPIC " -Dcpp_link_args= " -fPIC "
230232else
231233 echo " Open5GS build directory already exists."
232234fi
0 commit comments