Git and git-review
Git and git-review will be used to pull and push code from/to the ONOS repository, so they need to be installed. To streamline the code review process, it is highly recommended that contributors install git-review
sudo apt-get install git sudo apt-get install git-review
git-review on Mac
For more info about git-review refer to this link
If you're using a Mac, you may need to manually upgrade the git-review
package dependency. (git-review bug#1337701)
$ sudo pip install --upgrade setuptools
$ sudo pip install --upgrade git-review
Install Oracle JDK 1.8
ONOS is a Java based platform. In order to be able to compile the code, you need to install Oracle Java 1.8. The OpenJDK equivalent might work, but it's not suggested, since it has never been tested.
Since Oracle had an license update on April 16 2019, anyone who want to download java8 has to register account, the apt methods of installing will not work.
Go to Oracle JDK download website, login and download the tar ball : jdk-8uxxx-linux-x64.tar.gz
for JavaCommand in java jar java2groovy javac javadoc javafxpackager javah javap javapackager javaws do sudo update-alternatives --install /usr/bin/$JavaCommand $JavaCommand /your_path_extracted_jdk/bin/$JavaCommand 1 done
Install bazel
currently bazel.0.21.0 is the lastest one that support building ONOS, please refer to Install bazel for how to install bazel.