onos编译安装(Ubuntu18.04)
1 前置下载安装
1.1 前置包安装(参考docker file)
sudo apt-get install -y ca-certificates \
zip \
python \
python3 \
git \
bzip2 \
build-essential \
curl \
unzip
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 0xB1998361219BD9C9
sudo apt-add-repository "deb http://repos.azul.com/azure-only/zulu/apt stable main"
sudo apt-get -q update
sudo apt-get -y install zulu-11-azure-j
1.2 bazel 下载安装(bazle参考代码更新,这里是3.7.2)
#前置包安装
sudo apt-get install pkg-config zip g++ zlib1g-dev unzip python
#下载
sudo wget https://github.com/bazelbuild/bazel/releases/download/3.7.2/bazel-3.7.2-installer-linux-x86_64.sh
#运行install
sudo chmod +x bazel-3.7.2-installer-linux-x86_64.sh
./bazel-3.7.2-installer-linux-x86_64.sh --user
#修改~/.bashrc
sudo ge