Installation SilverCity schlägt fehl

Hallo!
Ich brauche das SilverCity-Modul für ein Python Skript. Aber leider krieg ich die Installation einfach nicht hin, obwohl ich (glaub ich) alles richtig mache.

Dies sind meine Schritte:
Code:
$wget http://kent.dl.sourceforge.net/sourceforge/silvercity/SilverCity-0.9.7.tar.gz
$tar -zxf 
$python setup.py install

Und das ist die Ausgabe.
webserver:/home/***/SilverCity-0.9.7# python setup.py install
/usr/lib/python2.4/distutils/dist.py:222: UserWarning: 'licence' distribution option is deprecated; use 'license'
warnings.warn(msg)
running install
running build
running build_py
creating build
creating build/lib.linux-i686-2.4
creating build/lib.linux-i686-2.4/SilverCity
copying PySilverCity/SilverCity/__init__.py -> build/lib.linux-i686-2.4/SilverCity
copying PySilverCity/SilverCity/DispatchHandler.py -> build/lib.linux-i686-2.4/SilverCity
copying PySilverCity/SilverCity/HTMLGenerator.py -> build/lib.linux-i686-2.4/SilverCity
copying PySilverCity/SilverCity/Keywords.py -> build/lib.linux-i686-2.4/SilverCity
copying PySilverCity/SilverCity/LanguageInfo.py -> build/lib.linux-i686-2.4/SilverCity
copying PySilverCity/SilverCity/Lexer.py -> build/lib.linux-i686-2.4/SilverCity
copying PySilverCity/SilverCity/ScintillaConstants.py -> build/lib.linux-i686-2.4/SilverCity
copying PySilverCity/SilverCity/Utils.py -> build/lib.linux-i686-2.4/SilverCity
copying PySilverCity/SilverCity/CPP.py -> build/lib.linux-i686-2.4/SilverCity
copying PySilverCity/SilverCity/CSS.py -> build/lib.linux-i686-2.4/SilverCity
copying PySilverCity/SilverCity/HyperText.py -> build/lib.linux-i686-2.4/SilverCity
copying PySilverCity/SilverCity/Java.py -> build/lib.linux-i686-2.4/SilverCity
copying PySilverCity/SilverCity/NULL.py -> build/lib.linux-i686-2.4/SilverCity
copying PySilverCity/SilverCity/Perl.py -> build/lib.linux-i686-2.4/SilverCity
copying PySilverCity/SilverCity/Python.py -> build/lib.linux-i686-2.4/SilverCity
copying PySilverCity/SilverCity/Ruby.py -> build/lib.linux-i686-2.4/SilverCity
copying PySilverCity/SilverCity/SQL.py -> build/lib.linux-i686-2.4/SilverCity
copying PySilverCity/SilverCity/Verilog.py -> build/lib.linux-i686-2.4/SilverCity
copying PySilverCity/SilverCity/XML.py -> build/lib.linux-i686-2.4/SilverCity
copying PySilverCity/SilverCity/XSLT.py -> build/lib.linux-i686-2.4/SilverCity
copying PySilverCity/SilverCity/YAML.py -> build/lib.linux-i686-2.4/SilverCity
running build_ext
building '_SilverCity' extension
creating build/temp.linux-i686-2.4
creating build/temp.linux-i686-2.4/PySilverCity
creating build/temp.linux-i686-2.4/PySilverCity/Src
creating build/temp.linux-i686-2.4/Lib
creating build/temp.linux-i686-2.4/Lib/Src
creating build/temp.linux-i686-2.4/scintilla
creating build/temp.linux-i686-2.4/scintilla/src
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -O2 -Wall -Wstrict-prototypes -fPIC -Iscintilla/src -Iscintilla/include -ILib/Src -I/usr/include/python2.4 -c PySilverCity/Src/PyLexerModule.cxx -o build/temp.linux-i686-2.4/PySilverCity/Src/PyLexerModule.o
cc1plus: warning: command line option "-Wstrict-prototypes" is valid for Ada/C/ObjC but not for C++
In file included from PySilverCity/Src/PyLexerModule.cxx:5:
PySilverCity/Src/PyLexerModule.h:8:20: error: Python.h: Datei oder Verzeichnis nicht gefunden
PySilverCity/Src/PyLexerModule.h:29:27: warning: no newline at end of file
In file included from Lib/Src/BufferAccessor.h:5,
from PySilverCity/Src/PyLexerModule.cxx:7:
Lib/Src/LineVector.h:41:3: warning: no newline at end of file
In file included from PySilverCity/Src/PyLexerModule.cxx:10:
PySilverCity/Src/AutoReleasePool.h:55:7: warning: no newline at end of file
In file included from PySilverCity/Src/PyLexerModule.cxx:11:
PySilverCity/Src/PyPropSet.h:28:23: warning: no newline at end of file
In file included from PySilverCity/Src/PyLexerModule.cxx:12:
PySilverCity/Src/PyWordList.h:28:24: warning: no newline at end of file
scintilla/include/SString.h:13: error: 'size_t' has not been declared
scintilla/include/SString.h:27: error: 'size_t' does not name a type
scintilla/include/SString.h:33: error: 'lenpos_t' does not name a type
scintilla/include/SString.h:42: error: 'lenpos_t' does not name a type
scintilla/include/SString.h:54: error: expected ';' before '(' token
scintilla/include/SString.h:63: error: 'lenpos_t' has not been declared
scintilla/include/SString.h: In constructor 'SContainer::SContainer()':
scintilla/include/SString.h:35: error: class 'SContainer' does not have any field named 'sSize'
scintilla/include/SString.h: In destructor 'SContainer::~SContainer()':
scintilla/include/SString.h:39: error: 'sSize' was not declared in this scope
scintilla/include/SString.h: At global scope:
scintilla/include/SString.h:80: error: expected `)' before 'len'
scintilla/include/SString.h:117: error: 'lenpos_t' does not name a type
scintilla/include/SString.h: In copy constructor 'SBuffer::SBuffer(const SBuffer&)':
scintilla/include/SString.h:93: error: 'const class SBuffer' has no member named 'sSize'
scintilla/include/SString.h:94: error: 'sSize' was not declared in this scope
scintilla/include/SString.h:94: error: 'const class SBuffer' has no member named 'sSize'
scintilla/include/SString.h: In member function 'SBuffer& SBuffer::operator=(const SBuffer&)':
scintilla/include/SString.h:101: error: 'const class SBuffer' has no member named 'sSize'
scintilla/include/SString.h:102: error: 'sSize' was not declared in this scope
scintilla/include/SString.h:102: error: 'const class SBuffer' has no member named 'sSize'
scintilla/include/SString.h: In member function 'void SBuffer::reset()':
scintilla/include/SString.h:114: error: 'sSize' was not declared in this scope
scintilla/include/SString.h: At global scope:
scintilla/include/SString.h:132: error: 'lenpos_t' does not name a type
scintilla/include/SString.h:133: error: 'lenpos_t' does not name a type
scintilla/include/SString.h:136: error: 'lenpos_t' has not been declared
scintilla/include/SString.h:137: error: 'lenpos_t' has not been declared
scintilla/include/SString.h:155: error: 'lenpos_t' has not been declared
scintilla/include/SString.h:155: error: 'lenpos_t' has not been declared
scintilla/include/SString.h:172: error: 'lenpos_t' does not name a type
scintilla/include/SString.h:176: error: 'lenpos_t' does not name a type
scintilla/include/SString.h:180: error: 'lenpos_t' has not been declared
scintilla/include/SString.h:203: error: 'lenpos_t' has not been declared
scintilla/include/SString.h:217: error: 'lenpos_t' has not been declared
scintilla/include/SString.h:217: error: 'lenpos_t' has not been declared
scintilla/include/SString.h:218: error: expected ';' before '(' token
scintilla/include/SString.h:219: error: expected ';' before '(' token
scintilla/include/SString.h:220: error: 'lenpos_t' has not been declared
scintilla/include/SString.h:233: error: expected ';' before '(' token
scintilla/include/SString.h:241: error: 'lenpos_t' has not been declared
scintilla/include/SString.h:241: error: 'lenpos_t' has not been declared
scintilla/include/SString.h:243: error: expected ';' before '(' token
scintilla/include/SString.h:250: error: expected `;' before 'int'
scintilla/include/SString.h:255: error: 'lenpos_t' has not been declared
scintilla/include/SString.h: In constructor 'SString::SString()':
scintilla/include/SString.h:140: error: class 'SString' does not have any field named 'sLen'
scintilla/include/SString.h:140: error: class 'SString' does not have any field named 'sizeGrowth'
scintilla/include/SString.h: In copy constructor 'SString::SString(const SString&)':
scintilla/include/SString.h:141: error: class 'SString' does not have any field named 'sizeGrowth'
scintilla/include/SString.h:142: error: 'const class SString' has no member named 'sLen'
scintilla/include/SString.h:143: error: 'sSize' was not declared in this scope
scintilla/include/SString.h:143: error: 'sLen' was not declared in this scope
scintilla/include/SString.h:143: error: 'const class SString' has no member named 'sLen'
scintilla/include/SString.h: In constructor 'SString::SString(const char*)':
scintilla/include/SString.h:145: error: class 'SString' does not have any field named 'sizeGrowth'
scintilla/include/SString.h:147: error: 'sSize' was not declared in this scope
scintilla/include/SString.h:147: error: 'sLen' was not declared in this scope
scintilla/include/SString.h:147: error: 'strlen' was not declared in this scope
scintilla/include/SString.h: In constructor 'SString::SString(SBuffer&)':
scintilla/include/SString.h:149: error: class 'SString' does not have any field named 'sizeGrowth'
scintilla/include/SString.h:151: error: 'sSize' was not declared in this scope
scintilla/include/SString.h:151: error: 'sLen' was not declared in this scope
scintilla/include/SString.h:151: error: 'class SBuffer' has no member named 'size'
scintilla/include/SString.h: In constructor 'SString::SString(const char*, int, int)':
scintilla/include/SString.h:155: error: class 'SString' does not have any field named 'sizeGrowth'
scintilla/include/SString.h:158: error: 'sSize' was not declared in this scope
scintilla/include/SString.h:158: error: 'sLen' was not declared in this scope
scintilla/include/SString.h: In destructor 'SString::~SString()':
scintilla/include/SString.h:163: error: 'sLen' was not declared in this scope
scintilla/include/SString.h: In member function 'void SString::clear()':
scintilla/include/SString.h:169: error: 'sLen' was not declared in this scope
scintilla/include/SString.h: In member function 'char SString::operator[](int) const':
scintilla/include/SString.h:181: error: 'sSize' was not declared in this scope
scintilla/include/SString.h: In member function 'SString& SString::operator=(const SString&)':
scintilla/include/SString.h:188: error: 'const class SString' has no member named 'sLen'
scintilla/include/SString.h: In member function 'bool SString::contains(char) const':
scintilla/include/SString.h:201: error: 'strchr' was not declared in this scope
scintilla/include/SString.h: In member function 'void SString::setsizegrowth(int)':
scintilla/include/SString.h:204: error: 'sizeGrowth' was not declared in this scope
scintilla/include/SString.h: In member function 'char* SString::detach()':
scintilla/include/SString.h:213: error: 'sSize' was not declared in this scope
scintilla/include/SString.h:214: error: 'sLen' was not declared in this scope
scintilla/include/SString.h: In member function 'SString& SString::operator+=(const char*)':
scintilla/include/SString.h:222: error: expected type-specifier before 'lenpos_t'
scintilla/include/SString.h:222: error: expected `>' before 'lenpos_t'
scintilla/include/SString.h:222: error: expected `(' before 'lenpos_t'
scintilla/include/SString.h:222: error: 'lenpos_t' was not declared in this scope
scintilla/include/SString.h: In member function 'SString& SString::operator+=(const SString&)':
scintilla/include/SString.h:225: error: 'const class SString' has no member named 'sLen'
scintilla/include/SString.h: In member function 'SString& SString::appendwithseparator(const char*, char)':
scintilla/include/SString.h:231: error: 'strlen' was not declared in this scope
scintilla/include/SString.h: In member function 'int SString::value() const':
scintilla/include/SString.h:251: error: 'atoi' was not declared in this scope
scintilla/include/SString.h: At global scope:
scintilla/include/SString.h:275: error: 'class SContainer::lenpos_t' has not been declared
scintilla/include/PropSet.h:33: error: 'size_t' has not been declared
scintilla/include/KeyWords.h:34: error: 'NULL' was not declared in this scope
scintilla/include/KeyWords.h: In function 'bool iswordchar(char)':
scintilla/include/KeyWords.h:63: error: 'isascii' was not declared in this scope
scintilla/include/KeyWords.h:63: error: 'isalnum' was not declared in this scope
scintilla/include/KeyWords.h: In function 'bool iswordstart(char)':
scintilla/include/KeyWords.h:67: error: 'isascii' was not declared in this scope
scintilla/include/KeyWords.h:67: error: 'isalnum' was not declared in this scope
scintilla/include/KeyWords.h: In function 'bool isoperator(char)':
scintilla/include/KeyWords.h:71: error: 'isascii' was not declared in this scope
scintilla/include/KeyWords.h:71: error: 'isalnum' was not declared in this scope
PySilverCity/Src/PyLexerModule.h: At global scope:
PySilverCity/Src/PyLexerModule.h:14: error: 'PyTypeObject' does not name a type
PySilverCity/Src/PyLexerModule.h:17: error: ISO C++ forbids declaration of 'PyObject_HEAD' with no type
PySilverCity/Src/PyLexerModule.h:18: error: expected ';' before 'const'
PySilverCity/Src/PyLexerModule.h:23: error: expected constructor, destructor, or type conversion before '*' token
PySilverCity/Src/AutoReleasePool.h:18: error: 'PyObject' has not been declared
PySilverCity/Src/AutoReleasePool.h:44: error: ISO C++ forbids declaration of 'PyObject' with no type
PySilverCity/Src/AutoReleasePool.h:44: error: expected ';' before '*' token
PySilverCity/Src/AutoReleasePool.h: In constructor 'AutoReleasePool::AutoReleasePool()':
PySilverCity/Src/AutoReleasePool.h:15: error: 'NULL' was not declared in this scope
PySilverCity/Src/AutoReleasePool.h: In member function 'void AutoReleasePool::add(int*)':
PySilverCity/Src/AutoReleasePool.h:22: error: 'struct AutoReleasePool::Node' has no member named 'content'
PySilverCity/Src/AutoReleasePool.h: In destructor 'AutoReleasePool::~AutoReleasePool()':
PySilverCity/Src/AutoReleasePool.h:32: error: 'NULL' was not declared in this scope
PySilverCity/Src/AutoReleasePool.h:36: error: 'struct AutoReleasePool::Node' has no member named 'content'
PySilverCity/Src/AutoReleasePool.h:36: error: 'Py_XDECREF' was not declared in this scope
PySilverCity/Src/PyPropSet.h: At global scope:
PySilverCity/Src/PyPropSet.h:12: error: 'PyTypeObject' does not name a type
PySilverCity/Src/PyPropSet.h:15: error: 'PyObject_HEAD' does not name a type
PySilverCity/Src/PyPropSet.h:22: error: expected constructor, destructor, or type conversion before '*' token
PySilverCity/Src/PyWordList.h:12: error: 'PyTypeObject' does not name a type
PySilverCity/Src/PyWordList.h:15: error: 'PyObject_HEAD' does not name a type
PySilverCity/Src/PyWordList.h:22: error: expected constructor, destructor, or type conversion before '*' token
PySilverCity/Src/PyLexerModule.cxx:54: error: 'PyObject' was not declared in this scope
PySilverCity/Src/PyLexerModule.cxx:54: error: 'pyWordLists' was not declared in this scope
PySilverCity/Src/PyLexerModule.cxx:54: error: expected primary-expression before 'const'
PySilverCity/Src/PyLexerModule.cxx:54: error: expected primary-expression before '&' token
PySilverCity/Src/PyLexerModule.cxx:54: error: 'pool' was not declared in this scope
PySilverCity/Src/PyLexerModule.cxx:54: error: initializer expression list treated as compound expression
PySilverCity/Src/PyLexerModule.cxx:56: error: expected constructor, destructor, or type conversion before '*' token
PySilverCity/Src/PyLexerModule.cxx: In function 'void PyLexerModule_dealloc(PyLexerModule*)':
PySilverCity/Src/PyLexerModule.cxx:70: error: 'PyObject_Del' was not declared in this scope
PySilverCity/Src/PyLexerModule.cxx: At global scope:
PySilverCity/Src/PyLexerModule.cxx:94: error: expected initializer before '*' token
PySilverCity/Src/PyLexerModule.cxx:214: error: redefinition of 'WordList** getWordList'
PySilverCity/Src/PyLexerModule.cxx:54: error: 'WordList** getWordList' previously defined here
PySilverCity/Src/PyLexerModule.cxx:214: error: 'PyObject' was not declared in this scope
PySilverCity/Src/PyLexerModule.cxx:214: error: 'pyWordLists' was not declared in this scope
PySilverCity/Src/PyLexerModule.cxx:214: error: expected primary-expression before 'const'
PySilverCity/Src/PyLexerModule.cxx:214: error: expected primary-expression before '&' token
PySilverCity/Src/PyLexerModule.cxx:214: error: 'pool' was not declared in this scope
PySilverCity/Src/PyLexerModule.cxx:278: error: expected initializer before '*' token
PySilverCity/Src/PyLexerModule.cxx:295: error: expected initializer before '*' token
PySilverCity/Src/PyLexerModule.cxx:322: error: 'PyMethodDef' does not name a type
PySilverCity/Src/PyLexerModule.cxx:331: error: expected initializer before '*' token
PySilverCity/Src/PyLexerModule.cxx:337: error: expected initializer before '*' token
PySilverCity/Src/PyLexerModule.cxx:365: error: 'PyTypeObject' does not name a type
PySilverCity/Src/PyLexerModule.cxx: In function 'void initPyLexerModule()':
PySilverCity/Src/PyLexerModule.cxx:389: error: 'PyLexerModuleType' was not declared in this scope
PySilverCity/Src/PyLexerModule.cxx:389: error: 'PyType_Type' was not declared in this scope
PySilverCity/Src/PyLexerModule.cxx: At global scope:
PySilverCity/Src/PyLexerModule.cxx:14: warning: 'tokenize_by_style_doc' defined but not used
PySilverCity/Src/PyLexerModule.cxx:37: warning: 'get_number_of_wordlists_doc' defined but not used
PySilverCity/Src/PyLexerModule.cxx:45: warning: 'get_wordlist_descriptions_doc' defined but not used
PySilverCity/Src/PyLexerModule.cxx:54: warning: 'getWordList' defined but not used
PySilverCity/Src/PyLexerModule.cxx:68: warning: 'void PyLexerModule_dealloc(PyLexerModule*)' defined but not used
PySilverCity/Src/PyLexerModule.cxx:74: warning: 'int numWordLists(const LexerModule*)' defined but not used
error: command 'gcc' failed with exit status 1

Anscheinend hat er Probleme im SString Header.

Danke für einen Lösungsvorschlag!
Michi
 
Code:
PySilverCity/Src/PyLexerModule.h:8:20: error: Python.h: Datei oder Verzeichnis nicht gefunden
Offenbar ist das Devel-Paket für Python nicht installiert?
 
Hm mit devel-paket meinst du development-paket oder? Google spuckt mir mit dem Suchbegriff "Development package python" nicht viel raus.
Ich such noch weiter, aber wenn du gerade weisst wo ich das bekomme... :)

Vielen Dank für deine Antwort!
 
Das bekommst du über deinen Paketmanager. Je nach installierter Python-Version ist das bei Ubuntu python2.4-dev oder python2.5-dev.
 
Zurück
Oben