Newer
Older
#!/bin/bash
sudo apt-get update
## Repository OAI dependencies
sudo add-apt-repository ppa:ettusresearch/uhd -y
sudo apt-get update -y
## OAI dependencies
## Testar com a libuhd4.4.0 ao invés de libuhd4.2.0u
sudo apt-get install libuhd-dev libdpdk-dev uhd-host -y
sudo apt-get install libuhd4.6.0 -y # Required for OpenAirInterface install
sudo dpkg -i --force-overwrite /var/cache/apt/archives/libuhd4.6.0_4.6.0.0-0ubuntu1~focal1_amd64.deb
# Work directory path is the current directory
WORK_DIR=$HOME
## Install OAI UE and OAI gNB
cd $WORK_DIR/
git clone https://gitlab.eurecom.fr/oai/openairinterface5g.git
cd $WORK_DIR/openairinterface5g
git config --global user.email "you@example.com"
git config --global user.name "Your Name"
source oaienv
cd cmake_targets
sudo ./build_oai -I --install-optional-packages
sudo ./build_oai --gNB --nrUE -C -w USRP --ninja --build-lib "uescope nrscope"