安裝ryu時,即執行紅字部分發生錯誤
#pip install ryu
or
#git clone git://github.com/osrg/ryu.git
#cd ryu
#python ./setup.py install
錯誤 1:”command ‘x86_64-linux-gnu-gcc’ failed with exit status 1“
解:試安裝下列套件
#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
錯誤 2:”fatal error: libxml/xmlversion.h: No such file or directory“
try try:
#apt-get install libxml2-dev libxslt1-dev python-lxml
執行 ryu-manager出現
“pkg_resources.VersionConflict: ($APK $APK_INSTALLED_VERSION (/usr/lib/python2.7/dist-packages), Requirement.parse(‘$APK>=$APK_NEEDED_VERSION’))”
try:
#apt-get install python-$APK
#pip install –upgrade $LOST_APK
(((10/27 : python-dev python-repoze.lru python-ecdsa )))
不確定有沒有差的部分:
GUI套件下載放到/ryu/ryu/gui路徑下之後,修改/ryu/ryu/topology
/switches.py
註解掉45行-53行的地方
不做好像也沒關係…..
搶先發佈留言