Skip to content

Instantly share code, notes, and snippets.

@olegslavkin
Created February 13, 2016 12:46
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save olegslavkin/e01ccc1835396402dc2f to your computer and use it in GitHub Desktop.
Save olegslavkin/e01ccc1835396402dc2f to your computer and use it in GitHub Desktop.
Install Ryu Controller (Ubuntu 14.04.3 Server)
#!/bin/bash
# Install RYU (Ubuntu 14.04.3)
# Author: Oleg Slavkin
echo "Step 1. Install tools"
sudo apt-get -y install git python-pip python-dev
echo "Step 2. Install python packages"
sudo apt-get -y install python-eventlet python-routes python-webob python-paramiko
echo "Step 3. Clone RYU git Repo"
cd ~/
git clone --depth=1 https://github.com/osrg/ryu.git
echo "Step 4. Install RYU"
sudo pip install setuptools --upgrade
cd ryu;
sudo python ./setup.py install
echo "Step 5. Install and Update python packages"
sudo pip install six --upgrade
sudo pip install oslo.config msgpack-python
sudo pip install eventlet --upgrade
echo "Step 6. Test ryu-manager"
ryu-manager --version
@omarmakram
Copy link

After step 6
echo "Step 6. Test ryu-manager"
ryu-manager --version

:~/ryu$ ryu-manager --version
Traceback (most recent call last):
File "/usr/local/bin/ryu-manager", line 6, in
from pkg_resources import load_entry_point
File "/usr/local/lib/python2.7/dist-packages/pkg_resources/init.py", line 3017, in
@_call_aside
File "/usr/local/lib/python2.7/dist-packages/pkg_resources/init.py", line 3003, in _call_aside
f(*args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/pkg_resources/init.py", line 3030, in _initialize_master_working_set
working_set = WorkingSet._build_master()
File "/usr/local/lib/python2.7/dist-packages/pkg_resources/init.py", line 659, in _build_master
ws.require(requires)
File "/usr/local/lib/python2.7/dist-packages/pkg_resources/init.py", line 967, in require
needed = self.resolve(parse_requirements(requirements))
File "/usr/local/lib/python2.7/dist-packages/pkg_resources/init.py", line 853, in resolve
raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'tinyrpc' distribution was not found and is required by ryu

@tengiao
Copy link

tengiao commented Feb 27, 2017

@auntu
Copy link

auntu commented Feb 28, 2017

Add the following in Step 5,

sudo pip install tinyrpc

@wwfcityu
Copy link

Thanks for providing the step-by-step tutorial. very helpful for novice like me

@bavugisainath
Copy link

How do I install ryu controller supporting netconf protocol?

@ShohrehHps
Copy link

ShohrehHps commented Oct 16, 2018

I have installed on ubuntu 14 and after step 4 (sudo python ./setup.py install) , then being waiting for along time...
but I have upgrade to ubuntu 18 and was installed easily
Thank you
be success all the time

@paaguti
Copy link

paaguti commented Sep 25, 2019

Why aren't you using the requirements provided by Ryu in the tools directory like:

sudo pip install -r tools/pip-requires 

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment