Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
S
SDRan-OpenAirInterface
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ReginaLAB
SDRan-OpenAirInterface
Commits
5ba59214
Commit
5ba59214
authored
1 year ago
by
Your Name
Browse files
Options
Downloads
Patches
Plain Diff
Add nric install script
parent
d62b1820
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
openairinterface5g/openairinterface-install-scripts/nric_flexric_oai_install.sh
+67
-0
67 additions, 0 deletions
...nairinterface-install-scripts/nric_flexric_oai_install.sh
with
67 additions
and
0 deletions
openairinterface5g/openairinterface-install-scripts/nric_flexric_oai_install.sh
0 → 100755
+
67
−
0
View file @
5ba59214
#!/bin/bash
sudo
apt-get update
## Install dependencies
sudo
apt-get
install
-y
autotools-dev
sudo
apt-get
install
-y
automake
# Required for run 'swig/autogen.sh'
sudo
apt-get
install
-y
g++ make libpcre2-dev byacc
# Required for swig install
sudo
apt-get
install
-y
cmake python3-dev libsctp-dev
# Required for flexric install
sudo
apt-get
install
-y
libpcre2-dev
sudo
apt-get
install
-y
pcre2-utils
sudo
apt-get
install
-y
bison
sudo
apt-get
install
-y
byacc
sudo
apt-get
install
-y
g++
sudo
apt-get
install
-y
libsctp-dev python3.8 libpcre2-dev python3-dev
## 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 uhd-host
-y
sudo
apt-get
install
libuhd4.2.0
-y
# Required for OpenAirInterface install
sudo
apt-get
install
libuhd4.4.0
-y
sudo
apt-get
install
libuhd4.5.0
-y
sudo
dpkg
-i
--force-overwrite
/var/cache/apt/archives/libuhd4.2.0_4.2.0.1-0ubuntu1~focal1_amd64.deb
sudo
dpkg
-i
--force-overwrite
/var/cache/apt/archives/libuhd4.4.0_4.4.0.0-0ubuntu1~focal1_amd64.deb
sudo
dpkg
-i
--force-overwrite
/var/cache/apt/archives/libuhd4.5.0_4.5.0.0-0ubuntu1~focal1_amd64.deb
# Work directory path is the current directory
WORK_DIR
=
$HOME
## Configure swig - required for flexric
cd
$WORK_DIR
/
git clone https://github.com/swig/swig.git
cd
$WORK_DIR
/swig
./autogen.sh
./configure
--prefix
=
/usr/
make
sudo
make
install
## Install FlexRIC
sudo rm
-rf
/usr/local/lib/flexric/
cd
$WORK_DIR
/
sudo rm
-rf
flexric/
git clone https://projetos.imd.ufrn.br/reginalab/nric-flexric.git flexric
cd
$WORK_DIR
/flexric
mkdir
$WORK_DIR
/flexric/build
cd
$WORK_DIR
/flexric/build
cmake ..
make
-j8
sudo
make
install
## Install OAI UE and OAI gNB
cd
$WORK_DIR
/
sudo rm
-rf
oai/
git clone https://projetos.imd.ufrn.br/reginalab/nric-oai oai
cd
$WORK_DIR
/oai
git config
--global
user.email
"you@example.com"
git config
--global
user.name
"Your Name"
source
oaienv
cd
cmake_targets
sudo
./build_oai
-I
-w
USRP
--gNB
--nrUE
--build-e2
--ninja
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment