Dies ist eine alte Version des Dokuments!
Ryu SDN-Controller auf MacOS X
An diesem Artikel wird gearbeitet.
Notizen: mkdir ryu
Ich empfehle „virtualenv“ zu verwenden. Dann noch „pip“ und „easy_install“ beschreiben. Beschreiben welches XCODE ich installiert habe (Command-Line Tools)
virtualenv ryu/
Macbook:Python Benny$ source ryu/bin/activate
1. Versuch der Installation (ryu)Macbook:ryu Benny$ pip install ryu Downloading/unpacking ryu
Downloading ryu-3.11.tar.gz (1.3MB): 1.3MB downloaded Running setup.py (path:/Users/Benny/Python/ryu/build/ryu/setup.py) egg_info for package ryu Installed /Users/Benny/Python/ryu/build/ryu/pbr-0.10.0-py2.7.egg [pbr] Processing SOURCES.txt warning: LocalManifestMaker: standard file '-c' not found
In file included from src/lxml/lxml.etree.c:346:
/Users/Benny/Python/ryu/build/lxml/src/lxml/includes/etree_defs.h:9:10: fatal error: 'libxml/xmlversion.h' file not found
#include „libxml/xmlversion.h“
Lösung (funktioniert zumindest bei mir): (ryu)Macbook:ryu Benny$ STATIC_DEPS=true pip install lxml Downloading/unpacking lxml
Downloading lxml-3.3.5.tar.gz (3.5MB): 3.5MB downloaded Running setup.py (path:/Users/Benny/Python/ryu/build/lxml/setup.py) egg_info for package lxml checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... build-aux/install-sh -c -d
….
pip install ryu ← funktioniert dann