laforge has submitted this change. ( https://gerrit.osmocom.org/c/upf-benchmark/+/39858?usp=email )
Change subject: doc: eupf_setup: Add missing step to install newer golang in debian12 ......................................................................
doc: eupf_setup: Add missing step to install newer golang in debian12
eupf requires newer golang than the one available currently in debian 12.
Change-Id: I8ad33780f76895bd919a25e63874d1966b17f4ee --- M doc/manuals/chapters/eupf_setup.adoc 1 file changed, 22 insertions(+), 6 deletions(-)
Approvals: laforge: Looks good to me, approved Jenkins Builder: Verified
diff --git a/doc/manuals/chapters/eupf_setup.adoc b/doc/manuals/chapters/eupf_setup.adoc index 2a07b00..7ff22e0 100644 --- a/doc/manuals/chapters/eupf_setup.adoc +++ b/doc/manuals/chapters/eupf_setup.adoc @@ -2,11 +2,32 @@ == eupf setup
[[eupf_install]] +=== eupf go 1.23 install + + +[[eupf_install]] === eupf install
Install eupf dependencies: ---- -$ sudo apt install wget git clang llvm gcc-multilib libbpf-dev +$ sudo apt install wget git clang llvm gcc-multilib libbpf-dev golang +---- + +Install go 1.23 (go 1.19.8 coming with debian12 is too old): +---- +$ cd /tmp +$ wget https://go.dev/dl/go1.23.7.linux-amd64.tar.gz +$ sudo tar -C /opt/ -zxvf go1.23.7.linux-amd64.tar.gz +$ mkdir -p ~/go/{bin,pkg,src} +---- + +Add to .bashrc: +---- +export GOPATH=$HOME/go +export GOROOT=/opt/go +export PATH="$GOPATH/bin:$GOROOT/bin:${PATH}" +export GO111MODULE=auto +$ source ~/.bashrc ----
Download eupf: @@ -22,11 +43,6 @@ $ go install github.com/swaggo/swag/cmd/swag@v1.8.12 ----
-Add to .bashrc: ----- -$ export PATH="${HOME}/go/bin:/usr/local/go/bin:${PATH}" ----- - Build & install eupf: ---- $ cd ~/git/eupf