Installation
Linux Kernel Version
In order to use the UPF element, you must use the
5.0.0-23-generic
version of the Linux kernel. free5gc uses the gtp5g kernel module, which has been tested and compiled against that kernel version only. To determine the version of the Linux kernel you are using:$ uname -r 5.0.0-23-generic
Golang Version
As noted above, free5gc is built and tested with Go 1.14.4
To check the version of Go on your system, from a command prompt:
go version
If another version of Go is installed, remove the existing version and install Go 1.14.4:
# this assumes your current version of Go is in the default location sudo rm -rf /usr/local/go wget https://dl.google.com/go/go1.14.4.linux-amd64.tar.gz sudo tar -C /usr/local -zxvf go1.14.4.linux-amd64.tar.gz
If Go is not installed on your system:
wget https://dl.google.com/go/go1.14.4.linux-amd64.tar.gz sudo tar -C /usr/local -zxvf go1.14.4.linux-amd64.tar.gz mkdir -p ~/go/{bin,pkg,src} # The following assume that your shell is bash echo 'export GOPATH=$HOME/go' >> ~/.bashrc echo 'export GOROOT=/usr/local/go' >> ~/.bashrc echo 'export PATH=$PATH:$GOPATH/bin:$GOROOT/bin' >> ~/.bashrc echo 'export GO111MODULE=auto' >> ~/.bashrc source ~/.bashrc