Ryu安装
1 周边环境
1.1 mininet
参考网址 :
源码安装部分
1.2 wireshark
sudo apt-get install wireshark
在某些系统中,运行如下进行安装(对应的启动命令为:wireshark-gtk):
sudo apt-get install wireshark-gtk
1.3 Pycharm
参考教程:
http://www.cnblogs.com/chentq/p/4975794.html
官网下载源码https://www.jetbrains.com/pycharm/download/#section=linux
解压,打开目录,
sudo ./*.sh命令进行安装(专业版见网址http://www.cnblogs.com/chentq/p/4975794.html
2 Ryu安装
参考网址:
https://github.com/osrg/ryu/wiki/OpenFlow_Tutorial
2.1 Ubuntu系统中的环境准备
- 安装python-eventlet, python-routes, python-webob, python-paramiko
time sudo apt-get install python-eventlet python-routes python-webob python-paramiko
//debug : no module name setuptools
//解决:sudo apt-get install python-setuptools
2.2 安装Ryu
git clone git://github.com/osrg/ryu.gitcd ryupython ./setup.py install
//bug : setuptools,debug
sudo apt-get install python-setuptools
//bug : No module named oslo_config.cfg
//解决:sudo apt-get install python-oslo.config
sudo apt-get update
sudo pip install -r tools/pip-requires
//bug : tingrpc
//:
pip install tinyrpc
2.3 运行Ryu
PYTHONPATH=. ./bin/ryu-manager ryu/app/simple_switch.py
报错:
pkg_resources.DistributionNotFound: The 'ovs>=2.6.0' distribution was not found and is required by ryu
debug:
其实不是这个原因。正确的解决方法是:
https://sourceforge.net/p/ryu/mailman/message/34972783/
https://github.com/osrg/ryu/blob/master/tools/pip-requires
检查依赖项
Hi,
The requirements are updated in last week.
https://github.com/osrg/ryu/blob/master/tools/pip-requires
Please re-install the required packages and try again.
$ sudo pip install -r tools/pip-requires
$ sudo python setup.py install