DMI-3 (realise)

его родимого
 
только модуль и все
 
только модуль и все

Попробывал ставить только модуль pysqlite-2.4.1 всеравно какая-то ошибка получается:

[root@server pysqlite-2.4.1]# python setup.py build
running build
running build_py
running build_ext
building 'pysqlite2._sqlite' extension
gcc -pthread -fno-strict-aliasing -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables -D_GNU_SOURCE -fPIC -fPIC -DMODULE_NAME="pysqlite2.dbapi2" -I/usr/include/python2.4 -c src/module.c -o build/temp.linux-i686-2.4/src/module.o
In file included from src/module.c:24:
src/connection.h:26:20: error: Python.h: No such file or directory
src/connection.h:27:22: error: pythread.h: No such file or directory
src/connection.h:28:26: error: structmember.h: No such file or directory
In file included from src/connection.h:30,
from src/module.c:24:
src/cache.h:34: error: expected specifier-qualifier-list before Б─≤PyObject_HEADБ─≥
src/cache.h:44: error: expected specifier-qualifier-list before Б─≤PyObject_HEADБ─≥
src/cache.h:61: error: expected Б─≤=Б─≥, Б─≤,Б─≥, Б─≤;Б─≥, Б─≤asmБ─≥ or Б─≤__attribute__Б─≥ before Б─≤pysqlite_NodeTypeБ─≥
src/cache.h:62: error: expected Б─≤=Б─≥, Б─≤,Б─≥, Б─≤;Б─≥, Б─≤asmБ─≥ or Б─≤__attribute__Б─≥ before Б─≤pysqlite_CacheTypeБ─≥
src/cache.h:64: error: expected declaration specifiers or Б─≤...Б─≥ before Б─≤PyObjectБ─≥
src/cache.h:64: error: expected declaration specifiers or Б─≤...Б─≥ before Б─≤PyObjectБ─≥
src/cache.h:67: error: expected declaration specifiers or Б─≤...Б─≥ before Б─≤PyObjectБ─≥
src/cache.h:67: error: expected declaration specifiers or Б─≤...Б─≥ before Б─≤PyObjectБ─≥
src/cache.h:69: error: expected Б─≤=Б─≥, Б─≤,Б─≥, Б─≤;Б─≥, Б─≤asmБ─≥ or Б─≤__attribute__Б─≥ before Б─≤*Б─≥ token
In file included from src/connection.h:31,
from src/module.c:24:
src/module.h:30: error: expected Б─≤=Б─≥, Б─≤,Б─≥, Б─≤;Б─≥, Б─≤asmБ─≥ or Б─≤__attribute__Б─≥ before Б─≤*Б─≥ token
src/module.h:31: error: expected Б─≤=Б─≥, Б─≤,Б─≥, Б─≤;Б─≥, Б─≤asmБ─≥ or Б─≤__attribute__Б─≥ before Б─≤*Б─≥ token
src/module.h:32: error: expected Б─≤=Б─≥, Б─≤,Б─≥, Б─≤;Б─≥, Б─≤asmБ─≥ or Б─≤__attribute__Б─≥ before Б─≤*Б─≥ token
src/module.h:33: error: expected Б─≤=Б─≥, Б─≤,Б─≥, Б─≤;Б─≥, Б─≤asmБ─≥ or Б─≤__attribute__Б─≥ before Б─≤*Б─≥ token
src/module.h:34: error: expected Б─≤=Б─≥, Б─≤,Б─≥, Б─≤;Б─≥, Б─≤asmБ─≥ or Б─≤__attribute__Б─≥ before Б─≤*Б─≥ token
src/module.h:35: error: expected Б─≤=Б─≥, Б─≤,Б─≥, Б─≤;Б─≥, Б─≤asmБ─≥ or Б─≤__attribute__Б─≥ before Б─≤*Б─≥ token
src/module.h:36: error: expected Б─≤=Б─≥, Б─≤,Б─≥, Б─≤;Б─≥, Б─≤asmБ─≥ or Б─≤__attribute__Б─≥ before Б─≤*Б─≥ token
src/module.h:37: error: expected Б─≤=Б─≥, Б─≤,Б─≥, Б─≤;Б─≥, Б─≤asmБ─≥ or Б─≤__attribute__Б─≥ before Б─≤*Б─≥ token
src/module.h:38: error: expected Б─≤=Б─≥, Б─≤,Б─≥, Б─≤;Б─≥, Б─≤asmБ─≥ or Б─≤__attribute__Б─≥ before Б─≤*Б─≥ token
src/module.h:39: error: expected Б─≤=Б─≥, Б─≤,Б─≥, Б─≤;Б─≥, Б─≤asmБ─≥ or Б─≤__attribute__Б─≥ before Б─≤*Б─≥ token
src/module.h:41: error: expected Б─≤=Б─≥, Б─≤,Б─≥, Б─≤;Б─≥, Б─≤asmБ─≥ or Б─≤__attribute__Б─≥ before Б─≤*Б─≥ token
src/module.h:44: error: expected Б─≤=Б─≥, Б─≤,Б─≥, Б─≤;Б─≥, Б─≤asmБ─≥ or Б─≤__attribute__Б─≥ before Б─≤*Б─≥ token
src/module.h:45: error: expected Б─≤=Б─≥, Б─≤,Б─≥, Б─≤;Б─≥, Б─≤asmБ─≥ or Б─≤__attribute__Б─≥ before Б─≤*Б─≥ token
src/module.h:51: error: expected Б─≤=Б─≥, Б─≤,Б─≥, Б─≤;Б─≥, Б─≤asmБ─≥ or Б─≤__attribute__Б─≥ before Б─≤*Б─≥ token
src/connection.h:33:21: error: sqlite3.h: No such file or directory
In file included from src/module.c:24:
src/connection.h:37: error: expected specifier-qualifier-list before Б─≤PyObject_HEADБ─≥
src/connection.h:116: error: expected Б─≤=Б─≥, Б─≤,Б─≥, Б─≤;Б─≥, Б─≤asmБ─≥ or Б─≤__attribute__Б─≥ before Б─≤pysqlite_ConnectionTypeБ─≥
src/connection.h:118: error: expected Б─≤=Б─≥, Б─≤,Б─≥, Б─≤;Б─≥, Б─≤asmБ─≥ or Б─≤__attribute__Б─≥ before Б─≤*Б─≥ token
src/connection.h:120: error: expected Б─≤=Б─≥, Б─≤,Б─≥, Б─≤;Б─≥, Б─≤asmБ─≥ or Б─≤__attribute__Б─≥ before Б─≤*Б─≥ token
src/connection.h:121: error: expected Б─≤=Б─≥, Б─≤,Б─≥, Б─≤;Б─≥, Б─≤asmБ─≥ or Б─≤__attribute__Б─≥ before Б─≤*Б─≥ token
src/connection.h:122: error: expected Б─≤=Б─≥, Б─≤,Б─≥, Б─≤;Б─≥, Б─≤asmБ─≥ or Б─≤__attribute__Б─≥ before Б─≤*Б─≥ token
src/connection.h:123: error: expected Б─≤=Б─≥, Б─≤,Б─≥, Б─≤;Б─≥, Б─≤asmБ─≥ or Б─≤__attribute__Б─≥ before Б─≤*Б─≥ token
src/connection.h:124: error: expected Б─≤=Б─≥, Б─≤,Б─≥, Б─≤;Б─≥, Б─≤asmБ─≥ or Б─≤__attribute__Б─≥ before Б─≤*Б─≥ token
src/connection.h:125: error: expected Б─≤=Б─≥, Б─≤,Б─≥, Б─≤;Б─≥, Б─≤asmБ─≥ or Б─≤__attribute__Б─≥ before Б─≤*Б─≥ token
src/connection.h:126: error: expected declaration specifiers or Б─≤...Б─≥ before Б─≤PyObjectБ─≥
src/connection.h:126: error: expected declaration specifiers or Б─≤...Б─≥ before Б─≤PyObjectБ─≥
In file included from src/module.c:25:
src/statement.h:36: error: expected specifier-qualifier-list before Б─≤PyObject_HEADБ─≥
src/statement.h:44: error: expected Б─≤=Б─≥, Б─≤,Б─≥, Б─≤;Б─≥, Б─≤asmБ─≥ or Б─≤__attribute__Б─≥ before Б─≤pysqlite_StatementTypeБ─≥
src/statement.h:46: error: expected declaration specifiers or Б─≤...Б─≥ before Б─≤PyObjectБ─≥
src/statement.h:49: error: expected declaration specifiers or Б─≤...Б─≥ before Б─≤PyObjectБ─≥
src/statement.h:50: error: expected declaration specifiers or Б─≤...Б─≥ before Б─≤PyObjectБ─≥
src/statement.h:52: error: expected declaration specifiers or Б─≤...Б─≥ before Б─≤PyObjectБ─≥
In file included from src/module.c:26:
src/cursor.h:34: error: expected specifier-qualifier-list before Б─≤PyObject_HEADБ─≥
src/cursor.h:54: error: expected Б─≤=Б─≥, Б─≤,Б─≥, Б─≤;Б─≥, Б─≤asmБ─≥ or Б─≤__attribute__Б─≥ before Б─≤pysqlite_CursorTypeБ─≥
src/cursor.h:56: error: expected declaration specifiers or Б─≤...Б─≥ before Б─≤PyObjectБ─≥
src/cursor.h:56: error: expected declaration specifiers or Б─≤...Б─≥ before Б─≤PyObjectБ─≥
src/cursor.h:58: error: expected Б─≤=Б─≥, Б─≤,Б─≥, Б─≤;Б─≥, Б─≤asmБ─≥ or Б─≤__attribute__Б─≥ before Б─≤*Б─≥ token
src/cursor.h:59: error: expected Б─≤=Б─≥, Б─≤,Б─≥, Б─≤;Б─≥, Б─≤asmБ─≥ or Б─≤__attribute__Б─≥ before Б─≤*Б─≥ token
src/cursor.h:60: error: expected Б─≤=Б─≥, Б─≤,Б─≥, Б─≤;Б─≥, Б─≤asmБ─≥ or Б─≤__attribute__Б─≥ before Б─≤*Б─≥ token
src/cursor.h:61: error: expected Б─≤=Б─≥, Б─≤,Б─≥, Б─≤;Б─≥, Б─≤asmБ─≥ or Б─≤__attribute__Б─≥ before Б─≤*Б─≥ token
src/cursor.h:62: error: expected Б─≤=Б─≥, Б─≤,Б─≥, Б─≤;Б─≥, Б─≤asmБ─≥ or Б─≤__attribute__Б─≥ before Б─≤*Б─≥ token
src/cursor.h:63: error: expected Б─≤=Б─≥, Б─≤,Б─≥, Б─≤;Б─≥, Б─≤asmБ─≥ or Б─≤__attribute__Б─≥ before Б─≤*Б─≥ token
src/cursor.h:64: error: expected Б─≤=Б─≥, Б─≤,Б─≥, Б─≤;Б─≥, Б─≤asmБ─≥ or Б─≤__attribute__Б─≥ before Б─≤*Б─≥ token
src/cursor.h:65: error: expected Б─≤=Б─≥, Б─≤,Б─≥, Б─≤;Б─≥, Б─≤asmБ─≥ or Б─≤__attribute__Б─≥ before Б─≤*Б─≥ token
src/cursor.h:66: error: expected Б─≤=Б─≥, Б─≤,Б─≥, Б─≤;Б─≥, Б─≤asmБ─≥ or Б─≤__attribute__Б─≥ before Б─≤*Б─≥ token
In file included from src/module.c:28:
src/prepare_protocol.h:30: error: expected specifier-qualifier-list before Б─≤PyObject_HEADБ─≥
src/prepare_protocol.h:33: error: expected Б─≤=Б─≥, Б─≤,Б─≥, Б─≤;Б─≥, Б─≤asmБ─≥ or Б─≤__attribute__Б─≥ before Б─≤pysqlite_PrepareProtocolTypeБ─≥
src/prepare_protocol.h:35: error: expected declaration specifiers or Б─≤...Б─≥ before Б─≤PyObjectБ─≥
src/prepare_protocol.h:35: error: expected declaration specifiers or Б─≤...Б─≥ before Б─≤PyObjectБ─≥
In file included from src/module.c:29:
src/microprotocols.h:29:20: error: Python.h: No such file or directory
In file included from src/module.c:29:
src/microprotocols.h:33: error: expected Б─≤=Б─≥, Б─≤,Б─≥, Б─≤;Б─≥, Б─≤asmБ─≥ or Б─≤__attribute__Б─≥ before Б─≤*Б─≥ token
src/microprotocols.h:44: error: expected Б─≤)Б─≥ before Б─≤*Б─≥ token
src/microprotocols.h:46: error: expected Б─≤)Б─≥ before Б─≤*Б─≥ token
src/microprotocols.h:47: error: expected Б─≤=Б─≥, Б─≤,Б─≥, Б─≤;Б─≥, Б─≤asmБ─≥ or Б─≤__attribute__Б─≥ before Б─≤*Б─≥ token
src/microprotocols.h:50: error: expected Б─≤=Б─≥, Б─≤,Б─≥, Б─≤;Б─≥, Б─≤asmБ─≥ or Б─≤__attribute__Б─≥ before Б─≤*Б─≥ token
In file included from src/module.c:30:
src/row.h:30: error: expected specifier-qualifier-list before Б─≤PyObject_HEADБ─≥
src/row.h:35: error: expected Б─≤=Б─≥, Б─≤,Б─≥, Б─≤;Б─≥, Б─≤asmБ─≥ or Б─≤__attribute__Б─≥ before Б─≤pysqlite_RowTypeБ─≥
src/module.c:38: error: expected Б─≤=Б─≥, Б─≤,Б─≥, Б─≤;Б─≥, Б─≤asmБ─≥ or Б─≤__attribute__Б─≥ before Б─≤*Б─≥ token
src/module.c:42: error: expected Б─≤=Б─≥, Б─≤,Б─≥, Б─≤;Б─≥, Б─≤asmБ─≥ or Б─≤__attribute__Б─≥ before Б─≤*Б─≥ token
src/module.c:46: error: expected Б─≤=Б─≥, Б─≤,Б─≥, Б─≤;Б─≥, Б─≤asmБ─≥ or Б─≤__attribute__Б─≥ before Б─≤*Б─≥ token
src/module.c:79: error: expected Б─≤=Б─≥, Б─≤,Б─≥, Б─≤;Б─≥, Б─≤asmБ─≥ or Б─≤__attribute__Б─≥ before Б─≤*Б─≥ token
src/module.c:128: error: expected Б─≤=Б─≥, Б─≤,Б─≥, Б─≤;Б─≥, Б─≤asmБ─≥ or Б─≤__attribute__Б─≥ before Б─≤*Б─≥ token
src/module.c:150: error: expected Б─≤=Б─≥, Б─≤,Б─≥, Б─≤;Б─≥, Б─≤asmБ─≥ or Б─≤__attribute__Б─≥ before Б─≤*Б─≥ token
src/module.c:178: error: expected Б─≤=Б─≥, Б─≤,Б─≥, Б─≤;Б─≥, Б─≤asmБ─≥ or Б─≤__attribute__Б─≥ before Б─≤*Б─≥ token
src/module.c:188: error: expected Б─≤)Б─≥ before Б─≤*Б─≥ token
src/module.c:198: error: expected Б─≤=Б─≥, Б─≤,Б─≥, Б─≤;Б─≥, Б─≤asmБ─≥ or Б─≤__attribute__Б─≥ before Б─≤module_methodsБ─≥
src/module.c:222: error: Б─≤SQLITE_OKБ─≥ undeclared here (not in a function)
src/module.c:223: error: Б─≤SQLITE_DENYБ─≥ undeclared here (not in a function)
src/module.c:224: error: Б─≤SQLITE_IGNOREБ─≥ undeclared here (not in a function)
src/module.c:225: error: Б─≤SQLITE_CREATE_INDEXБ─≥ undeclared here (not in a function)
src/module.c:226: error: Б─≤SQLITE_CREATE_TABLEБ─≥ undeclared here (not in a function)
src/module.c:227: error: Б─≤SQLITE_CREATE_TEMP_INDEXБ─≥ undeclared here (not in a function)
src/module.c:228: error: Б─≤SQLITE_CREATE_TEMP_TABLEБ─≥ undeclared here (not in a function)
src/module.c:229: error: Б─≤SQLITE_CREATE_TEMP_TRIGGERБ─≥ undeclared here (not in a function)
src/module.c:230: error: Б─≤SQLITE_CREATE_TEMP_VIEWБ─≥ undeclared here (not in a function)
src/module.c:231: error: Б─≤SQLITE_CREATE_TRIGGERБ─≥ undeclared here (not in a function)
src/module.c:232: error: Б─≤SQLITE_CREATE_VIEWБ─≥ undeclared here (not in a function)
src/module.c:233: error: Б─≤SQLITE_DELETEБ─≥ undeclared here (not in a function)
src/module.c:234: error: Б─≤SQLITE_DROP_INDEXБ─≥ undeclared here (not in a function)
src/module.c:235: error: Б─≤SQLITE_DROP_TABLEБ─≥ undeclared here (not in a function)
src/module.c:236: error: Б─≤SQLITE_DROP_TEMP_INDEXБ─≥ undeclared here (not in a function)
src/module.c:237: error: Б─≤SQLITE_DROP_TEMP_TABLEБ─≥ undeclared here (not in a function)
src/module.c:238: error: Б─≤SQLITE_DROP_TEMP_TRIGGERБ─≥ undeclared here (not in a function)
src/module.c:239: error: Б─≤SQLITE_DROP_TEMP_VIEWБ─≥ undeclared here (not in a function)
src/module.c:240: error: Б─≤SQLITE_DROP_TRIGGERБ─≥ undeclared here (not in a function)
src/module.c:241: error: Б─≤SQLITE_DROP_VIEWБ─≥ undeclared here (not in a function)
src/module.c:242: error: Б─≤SQLITE_INSERTБ─≥ undeclared here (not in a function)
src/module.c:243: error: Б─≤SQLITE_PRAGMAБ─≥ undeclared here (not in a function)
src/module.c:244: error: Б─≤SQLITE_READБ─≥ undeclared here (not in a function)
src/module.c:245: error: Б─≤SQLITE_SELECTБ─≥ undeclared here (not in a function)
src/module.c:246: error: Б─≤SQLITE_TRANSACTIONБ─≥ undeclared here (not in a function)
src/module.c:247: error: Б─≤SQLITE_UPDATEБ─≥ undeclared here (not in a function)
src/module.c:248: error: Б─≤SQLITE_ATTACHБ─≥ undeclared here (not in a function)
src/module.c:249: error: Б─≤SQLITE_DETACHБ─≥ undeclared here (not in a function)
src/module.c:257: error: Б─≤NULLБ─≥ undeclared here (not in a function)
src/module.c:260: error: expected Б─≤=Б─≥, Б─≤,Б─≥, Б─≤;Б─≥, Б─≤asmБ─≥ or Б─≤__attribute__Б─≥ before Б─≤init_sqliteБ─≥
error: command 'gcc' failed with exit status 1
[root@server pysqlite-2.4.1]#

Почему он не хочет модуль ставить?
 
для seoseo

-> Python.h: No such file or directory....

нужно поставить python-dev
там все нужное будет
 
для seoseo

-> Python.h: No such file or directory....

нужно поставить python-dev
там все нужное будет

[root@server pysqlite-2.4.1]# yum install python-dev
Loading "installonlyn" plugin
Setting up Install Process
Setting up repositories
Reading repository metadata in from local files
Parsing package install arguments
Nothing to do
[root@server pysqlite-2.4.1]#

Походу стоит он у меня уже.
 
Кто-нибудь вообще завел?
 
[root@server pysqlite-2.4.1]# yum install python-dev
Loading "installonlyn" plugin
Setting up Install Process
Setting up repositories
Reading repository metadata in from local files
Parsing package install arguments
Nothing to do
[root@server pysqlite-2.4.1]#

Походу стоит он у меня уже.

какая OS на серваке ??
 
Назад
Сверху