install_oran-sc-ric/build

77 lines
1.9 KiB
Plaintext
Raw Permalink Normal View History

2024-04-16 15:37:10 +02:00
#!/bin/bash
2024-04-19 14:22:31 +02:00
# Install docker and compose plugin
# Add Docker's official GPG key:
sudo apt-get update
sudo apt-get install ca-certificates curl
sudo install -m 0755 -d /etc/apt/keyrings
sudo curl -fsSL https://download.docker.com/linux/ubuntu/gpg -o /etc/apt/keyrings/docker.asc
sudo chmod a+r /etc/apt/keyrings/docker.asc
# Add the repository to Apt sources:
echo \
"deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/ubuntu \
$(. /etc/os-release && echo "$VERSION_CODENAME") stable" | \
sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
sudo apt-get update
sudo apt-get install -y docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
sudo apt-get install -y docker-compose-plugin
#---
2024-04-16 15:37:10 +02:00
cd /opt
apt update
apt install -y cmake make gcc g++ pkg-config libfftw3-dev libmbedtls-dev libsctp-dev libyaml-cpp-dev libgtest-dev screen libtool swig
git clone https://github.com/srsran/oran-sc-ric.git
2024-04-18 17:08:57 +02:00
cd oran-sc-ric
docker compose build
2024-04-18 16:28:29 +02:00
2024-04-16 15:37:10 +02:00
#install ZeroMQ
sudo apt-get install -y libzmq3-dev
cd /opt
git clone https://github.com/zeromq/libzmq.git
cd libzmq
./autogen.sh
./configure
make -j`nproc`
sudo make install
sudo ldconfig
cd /opt
git clone https://github.com/zeromq/czmq.git
cd czmq
./autogen.sh
./configure
make -j`nproc`
sudo make install
sudo ldconfig
2024-04-18 16:28:29 +02:00
2024-04-16 15:37:10 +02:00
#-----#
cd /opt
git clone https://github.com/srsran/srsRAN_Project/
2024-04-18 16:28:29 +02:00
cd srsRAN_Project
2024-04-17 12:43:20 +02:00
git checkout test
2024-04-16 15:37:10 +02:00
mkdir build
cd build
cmake .. -DENABLE_EXPORT=ON -DENABLE_ZEROMQ=ON
make -j`nproc`
2024-04-18 16:28:29 +02:00
#make test
2024-04-16 15:37:10 +02:00
sudo ip netns add ue1
#install srsRAN 4g
sudo apt-get install -y build-essential cmake libfftw3-dev libmbedtls-dev libboost-program-options-dev libconfig++-dev libsctp-dev
cd /opt
git clone https://github.com/srsRAN/srsRAN_4G.git
cd srsRAN_4G
mkdir build
cd build
cmake ../
make -j`nproc`
make install
srsran_install_configs.sh user