This is a automatic installation script for install Ryu on Ubuntu 16.04
Switch branches/tags
Nothing to show
Clone or download
Latest commit 2bcd03d May 17, 2017
Failed to load latest commit information.
macosx Add MAC OSX install guide Feb 17, 2015
.gitignore Ignore ryu source code Nov 17, 2015
LICENSE Initial commit Oct 18, 2014 Reduce install steps. Dec 30, 2015
Vagrantfile Add Vagrantfile May 17, 2017 support ubuntu 16.04 May 17, 2017 Add startup script Nov 17, 2015


There are two ways to install ryu without any painful

Option 1: Get the latest official version source build and install it.

(The Easiest Way)

An automatic installation script for build and install Ryu source code on Ubuntu 12.04+.

To make installation easiest. This helper script which should get all dependencies and download, build, and install Ryu.

$ curl -sL | bash

That's it !!

Note: This script has only been tested on the most recent stable version of Ubuntu.

Option 2: Using Python Virtualenv

virtualenv is a tool to create isolated Python environments.

1. Install Ryu dependency
$ sudo apt-get update
$ sudo apt-get install git python-pip python-dev libxml2-dev libxslt1-dev -y
2. Setup virtualenv

First, create a new virtualenv called "ryu_venv":

$ virtualenv ryu_venv

Activate the newly created virtualenv:

$ source ./ryu_venv/bin/activate

Your shell prompt will now display the currently active virtualenv:


3. Install the Ryu packages

(ryu_venv)$ pip install ryu

4. Starting Ryu

Once you have properly setup virtualenv and install ryu, you can start ryu using following command:

(ryu_venv)$ ryu-manager

You may need to clone official source code for running sample application.

$ git clone

Running a sample application

(ryu_venv)$ ryu-manager ./ryu/ryu/ryu/app/

5. Deactivate virtualenv

If you want to leave python virtualenv just using deactivate command.

(ryu_venv)$ deactivate

For more information on virtualenv, see

Enjoy hacking on SDN 😄