{"id":61,"date":"2014-10-04T22:59:48","date_gmt":"2014-10-04T14:59:48","guid":{"rendered":"http:\/\/140.128.102.245\/wordpress\/?p=61"},"modified":"2015-12-08T17:32:28","modified_gmt":"2015-12-08T09:32:28","slug":"ryu-%e5%ae%89%e8%a3%9d%e5%9f%b7%e8%a1%8c%e5%a5%87%e6%80%aa%e5%95%8f%e9%a1%8c%e9%9b%86","status":"publish","type":"post","link":"https:\/\/blog.laszlo.tw\/?p=61","title":{"rendered":"Ryu \u5b89\u88dd\u57f7\u884c\u5947\u602a\u554f\u984c\u96c6"},"content":{"rendered":"<h1>\u5b89\u88ddryu\u6642\uff0c\u5373\u57f7\u884c<span style=\"color: #ff0000;\">\u7d05\u5b57<\/span>\u90e8\u5206\u767c\u751f\u932f\u8aa4<\/h1>\n<p><span style=\"color: #ff0000;\">#pip install ryu<\/span><br \/>\nor<br \/>\n#git clone git:\/\/github.com\/osrg\/ryu.git<br \/>\n#cd ryu<br \/>\n<span style=\"color: #ff0000;\">#python .\/setup.py install<\/span><\/p>\n<p><strong><span style=\"color: #ff0000;\"><span style=\"color: #000000;\">\u932f\u8aa4 1\uff1a&#8221;<\/span>command &#8216;x86_64-linux-gnu-gcc&#8217; failed with exit status 1<\/span>&#8220;<\/strong><br \/>\n\u89e3\uff1a\u8a66\u5b89\u88dd\u4e0b\u5217\u5957\u4ef6<br \/>\n#apt-get install build-essential autoconf libtool pkg-config python-opengl python-imaging python-pyrex python-pyside.qtopengl idle-python2.7 qt4-dev-tools qt4-designer libqtgui4 libqtcore4 libqt4-xml libqt4-test libqt4-script libqt4-network libqt4-dbus python-qt4 python-qt4-gl libgle3<br \/>\n<strong>\u932f\u8aa4 2\uff1a&#8221;<span style=\"color: #ff0000;\">fatal error: libxml\/xmlversion.h: No such file or directory<\/span>&#8220;<\/strong><br \/>\ntry try\uff1a<br \/>\n#apt-get install libxml2-dev libxslt1-dev\u00a0python-lxml<!--more--><\/p>\n<h1><strong>\u57f7\u884c\u00a0<\/strong><strong>ryu-manager\u51fa\u73fe<\/strong><\/h1>\n<p><strong style=\"line-height: 1.5;\">&#8220;<span style=\"color: #ff0000;\">pkg_resources.VersionConflict: ($APK $APK_INSTALLED_VERSION (\/usr\/lib\/python2.7\/dist-packages), Requirement.parse(&#8216;$APK&gt;=$APK_NEEDED_VERSION&#8217;))<\/span>&#8221;<br \/>\n<\/strong><span style=\"line-height: 1.5;\">try\uff1a<br \/>\n<\/span>#apt-get install python-$APK<br \/>\n#pip install &#8211;upgrade $LOST_APK<br \/>\n(((10\/27 : python-dev\u00a0python-repoze.lru\u00a0python-ecdsa )))<\/p>\n<p>\u4e0d\u78ba\u5b9a\u6709\u6c92\u6709\u5dee\u7684\u90e8\u5206\uff1a<br \/>\nGUI\u5957\u4ef6\u4e0b\u8f09\u653e\u5230\/ryu\/ryu\/gui\u8def\u5f91\u4e0b\u4e4b\u5f8c\uff0c\u4fee\u6539\/<code>ryu\/ryu\/topology<\/code>\/<code>switches.py<\/code>\u00a0 \u8a3b\u89e3\u638945\u884c-53\u884c\u7684\u5730\u65b9<a href=\"https:\/\/blog.laszlo.tw\/wp-content\/uploads\/2014\/10\/mQbRUzATS5SxIFVgUr2M_switches.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-318 aligncenter\" src=\"https:\/\/blog.laszlo.tw\/wp-content\/uploads\/2014\/10\/mQbRUzATS5SxIFVgUr2M_switches.png\" alt=\"mQbRUzATS5SxIFVgUr2M_switches\" width=\"791\" height=\"382\" \/><\/a><\/p>\n<p>\u4e0d\u505a\u597d\u50cf\u4e5f\u6c92\u95dc\u4fc2&#8230;..<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5b89\u88ddryu\u6642\uff0c\u5373\u57f7\u884c\u7d05\u5b57\u90e8\u5206\u767c\u751f\u932f\u8aa4 #pip i<\/p>\n<div class=\"more-link-wrapper\"><a class=\"more-link\" href=\"https:\/\/blog.laszlo.tw\/?p=61\">\u95b1\u8b80\u5168\u6587<span class=\"screen-reader-text\">Ryu \u5b89\u88dd\u57f7\u884c\u5947\u602a\u554f\u984c\u96c6<\/span><\/a><\/div>\n","protected":false},"author":4,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_exactmetrics_skip_tracking":false,"_exactmetrics_sitenote_active":false,"_exactmetrics_sitenote_note":"","_exactmetrics_sitenote_category":0,"footnotes":""},"categories":[7,2],"tags":[],"class_list":["post-61","post","type-post","status-publish","format-standard","hentry","category-ryu","category-sdn","entry"],"_links":{"self":[{"href":"https:\/\/blog.laszlo.tw\/index.php?rest_route=\/wp\/v2\/posts\/61","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.laszlo.tw\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.laszlo.tw\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.laszlo.tw\/index.php?rest_route=\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.laszlo.tw\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=61"}],"version-history":[{"count":8,"href":"https:\/\/blog.laszlo.tw\/index.php?rest_route=\/wp\/v2\/posts\/61\/revisions"}],"predecessor-version":[{"id":319,"href":"https:\/\/blog.laszlo.tw\/index.php?rest_route=\/wp\/v2\/posts\/61\/revisions\/319"}],"wp:attachment":[{"href":"https:\/\/blog.laszlo.tw\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=61"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.laszlo.tw\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=61"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.laszlo.tw\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=61"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}