Page tree

Have questions? Stuck? Please check our FAQ for some common questions and answers.

This wiki documents the current development version of ONOS (master). Refer to the Wiki Archives for documentation for all previous versions of ONOS.

Skip to end of metadata
Go to start of metadata

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

Install git and 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.

How to install Oracle Java 1.8 in one command on Ubuntu
sudo apt-get install software-properties-common -y && \
sudo add-apt-repository ppa:webupd8team/java -y && \
sudo apt-get update && \
echo "oracle-java8-installer shared/accepted-oracle-license-v1-1 select true" | sudo debconf-set-selections && \
sudo apt-get install oracle-java8-installer oracle-java8-set-default -y

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.

  • No labels