problem bei pysqlite

Probleme bei der Installation?
Antworten
murph
User
Beiträge: 622
Registriert: Freitag 14. April 2006, 19:23
Kontaktdaten:

ich habe versucht, die version zu installieren, aber es regnete fehlermeldungen.
genauso ging es mir, als ich eine ältere version nahm.
hier die fehler:
root@murphs:/home/murph/My Downloads/mysql/pysqlite-2.2.1# ./setup.py install
running install
running build
running build_py
creating build
creating build/lib.linux-i686-2.4
creating build/lib.linux-i686-2.4/pysqlite2
copying pysqlite2/__init__.py -> build/lib.linux-i686-2.4/pysqlite2
copying pysqlite2/dbapi2.py -> build/lib.linux-i686-2.4/pysqlite2
creating build/lib.linux-i686-2.4/pysqlite2/test
copying pysqlite2/test/__init__.py -> build/lib.linux-i686-2.4/pysqlite2/test
copying pysqlite2/test/dbapi.py -> build/lib.linux-i686-2.4/pysqlite2/test
copying pysqlite2/test/factory.py -> build/lib.linux-i686-2.4/pysqlite2/test
copying pysqlite2/test/hooks.py -> build/lib.linux-i686-2.4/pysqlite2/test
copying pysqlite2/test/regression.py -> build/lib.linux-i686-2.4/pysqlite2/test
copying pysqlite2/test/transactions.py -> build/lib.linux-i686-2.4/pysqlite2/test
copying pysqlite2/test/types.py -> build/lib.linux-i686-2.4/pysqlite2/test
copying pysqlite2/test/userfunctions.py -> build/lib.linux-i686-2.4/pysqlite2/test
running build_ext
building 'pysqlite2._sqlite' extension
creating build/temp.linux-i686-2.4
creating build/temp.linux-i686-2.4/src
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -fPIC -DMODULE_NAME="pysqlite2.dbapi2" -I/usr/local/include -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:33:21: error: sqlite3.h: No such file or directory
In file included from src/module.c:24:
src/connection.h:38: error: syntax error before ‘sqlite3’
src/connection.h:38: warning: no semicolon at end of struct or union
src/connection.h:109: error: syntax error before ‘}’ token
src/connection.h:109: warning: type defaults to ‘int’ in declaration of ‘Connection’
src/connection.h:109: warning: data definition has no type or storage class
src/connection.h:114: error: syntax error before ‘*’ token
src/connection.h:114: warning: function declaration isn’t a prototype
src/connection.h:115: error: syntax error before ‘*’ token
src/connection.h:115: warning: function declaration isn’t a prototype
src/connection.h:116: error: syntax error before ‘*’ token
src/connection.h:116: warning: function declaration isn’t a prototype
src/connection.h:117: error: syntax error before ‘*’ token
src/connection.h:117: warning: function declaration isn’t a prototype
src/connection.h:118: error: syntax error before ‘*’ token
src/connection.h:118: warning: function declaration isn’t a prototype
src/connection.h:119: error: syntax error before ‘*’ token
src/connection.h:119: warning: function declaration isn’t a prototype
src/connection.h:120: error: syntax error before ‘*’ token
src/connection.h:120: warning: function declaration isn’t a prototype
src/connection.h:122: error: syntax error before ‘*’ token
src/connection.h:122: warning: function declaration isn’t a prototype
src/connection.h:124: error: syntax error before ‘*’ token
src/connection.h:124: warning: function declaration isn’t a prototype
src/connection.h:125: error: syntax error before ‘*’ token
src/connection.h:125: warning: function declaration isn’t a prototype
In file included from src/module.c:25:
src/statement.h:37: error: syntax error before ‘sqlite3’
src/statement.h:37: warning: no semicolon at end of struct or union
src/statement.h:38: warning: type defaults to ‘int’ in declaration of ‘st’
src/statement.h:38: warning: data definition has no type or storage class
src/statement.h:42: error: syntax error before ‘}’ token
src/statement.h:42: warning: type defaults to ‘int’ in declaration of ‘Statement’
src/statement.h:42: warning: data definition has no type or storage class
src/statement.h:46: error: syntax error before ‘*’ token
src/statement.h:46: warning: function declaration isn’t a prototype
src/statement.h:47: error: syntax error before ‘*’ token
src/statement.h:47: warning: function declaration isn’t a prototype
src/statement.h:49: error: syntax error before ‘*’ token
src/statement.h:49: warning: function declaration isn’t a prototype
src/statement.h:50: error: syntax error before ‘*’ token
src/statement.h:50: warning: function declaration isn’t a prototype
src/statement.h:52: error: syntax error before ‘*’ token
src/statement.h:52: warning: function declaration isn’t a prototype
src/statement.h:53: error: syntax error before ‘*’ token
src/statement.h:53: warning: function declaration isn’t a prototype
src/statement.h:54: error: syntax error before ‘*’ token
src/statement.h:54: warning: function declaration isn’t a prototype
src/statement.h:55: error: syntax error before ‘*’ token
src/statement.h:55: warning: function declaration isn’t a prototype
In file included from src/module.c:26:
src/cursor.h:35: error: syntax error before ‘Connection’
src/cursor.h:35: warning: no semicolon at end of struct or union
src/cursor.h:42: error: syntax error before ‘*’ token
src/cursor.h:42: warning: type defaults to ‘int’ in declaration of ‘statement’
src/cursor.h:42: warning: data definition has no type or storage class
src/cursor.h:46: error: syntax error before ‘}’ token
src/cursor.h:46: warning: type defaults to ‘int’ in declaration of ‘Cursor’
src/cursor.h:46: warning: data definition has no type or storage class
src/cursor.h:56: error: syntax error before ‘*’ token
src/cursor.h:56: warning: function declaration isn’t a prototype
src/cursor.h:57: error: syntax error before ‘*’ token
src/cursor.h:57: warning: function declaration isn’t a prototype
src/cursor.h:58: error: syntax error before ‘*’ token
src/cursor.h:58: warning: function declaration isn’t a prototype
src/cursor.h:59: error: syntax error before ‘*’ token
src/cursor.h:59: warning: function declaration isn’t a prototype
src/cursor.h:60: error: syntax error before ‘*’ token
src/cursor.h:60: warning: function declaration isn’t a prototype
src/cursor.h:61: error: syntax error before ‘*’ token
src/cursor.h:61: warning: function declaration isn’t a prototype
src/cursor.h:62: error: syntax error before ‘*’ token
src/cursor.h:62: warning: function declaration isn’t a prototype
src/cursor.h:63: error: syntax error before ‘*’ token
src/cursor.h:63: warning: function declaration isn’t a prototype
src/cursor.h:64: error: syntax error before ‘*’ token
src/cursor.h:64: warning: function declaration isn’t a prototype
src/cursor.h:65: error: syntax error before ‘*’ token
src/cursor.h:65: warning: function declaration isn’t a prototype
src/cursor.h:66: error: syntax error before ‘*’ token
src/cursor.h:66: warning: function declaration isn’t a prototype
In file included from src/module.c:29:
src/microprotocols.h:55: error: syntax error before ‘*’ token
src/microprotocols.h:55: warning: function declaration isn’t a prototype
src/module.c: In function ‘module_complete’:
src/module.c:90: warning: implicit declaration of function ‘sqlite3_complete’
src/module.c: In function ‘init_sqlite’:
src/module.c:294: warning: implicit declaration of function ‘sqlite3_libversion’
src/module.c:294: warning: passing argument 1 of ‘PyString_FromString’ makes pointer from integer without a cast
error: command 'gcc' failed with exit status 1
root@murphs:/home/murph/My Downloads/mysql/pysqlite-2.2.1# g++ -pthread -fno-strict-aliasing -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -fPIC -DMODULE_NAME="pysqlite2.dbapi2" -I/usr/local/include -I/usr/include/python2.4 -c src/module.c -o build/temp.linux-i686-2.4/src/module.o
cc1plus: warning: command line option "-Wstrict-prototypes" is valid for Ada/C/ObjC but not for C++
In file included from src/module.c:24:
src/connection.h:33:21: error: sqlite3.h: No such file or directory
src/connection.h:38: error: ISO C++ forbids declaration of ‘sqlite3’ with no type
src/connection.h:38: error: expected ‘;’ before ‘*’ token
src/statement.h:37: error: ISO C++ forbids declaration of ‘sqlite3’ with no type
src/statement.h:37: error: expected ‘;’ before ‘*’ token
src/statement.h:38: error: ISO C++ forbids declaration of ‘sqlite3_stmt’ with no type
src/statement.h:38: error: expected ‘;’ before ‘*’ token
src/module.c: In function ‘PyObject* module_complete(PyObject*, PyObject*, PyObject*)’:
src/module.c:90: error: ‘sqlite3_complete’ was not declared in this scope
src/module.c: In function ‘void init_sqlite()’:
src/module.c:217: error: ‘pysqlite2’ was not declared in this scope
src/module.c:222: error: ‘pysqlite2’ was not declared in this scope
src/module.c:229: error: ‘pysqlite2’ was not declared in this scope
src/module.c:234: error: ‘pysqlite2’ was not declared in this scope
src/module.c:241: error: ‘pysqlite2’ was not declared in this scope
src/module.c:246: error: ‘pysqlite2’ was not declared in this scope
src/module.c:251: error: ‘pysqlite2’ was not declared in this scope
src/module.c:256: error: ‘pysqlite2’ was not declared in this scope
src/module.c:261: error: ‘pysqlite2’ was not declared in this scope
src/module.c:266: error: ‘pysqlite2’ was not declared in this scope
src/module.c:294: error: ‘sqlite3_libversion’ was not declared in this scope
src/module.c: At global scope:
src/module.c:325: error: expected `}' at end of input
die neue version aber:
root@murphs:/home/murph/My Downloads/mysql/pysqlite-2.2.2# ./setup.py install
running install
running build
running build_py
creating build
creating build/lib.linux-i686-2.4
creating build/lib.linux-i686-2.4/pysqlite2
copying pysqlite2/__init__.py -> build/lib.linux-i686-2.4/pysqlite2
copying pysqlite2/dbapi2.py -> build/lib.linux-i686-2.4/pysqlite2
creating build/lib.linux-i686-2.4/pysqlite2/test
copying pysqlite2/test/__init__.py -> build/lib.linux-i686-2.4/pysqlite2/test
copying pysqlite2/test/dbapi.py -> build/lib.linux-i686-2.4/pysqlite2/test
copying pysqlite2/test/factory.py -> build/lib.linux-i686-2.4/pysqlite2/test
copying pysqlite2/test/hooks.py -> build/lib.linux-i686-2.4/pysqlite2/test
copying pysqlite2/test/regression.py -> build/lib.linux-i686-2.4/pysqlite2/test
copying pysqlite2/test/transactions.py -> build/lib.linux-i686-2.4/pysqlite2/tes t
copying pysqlite2/test/types.py -> build/lib.linux-i686-2.4/pysqlite2/test
copying pysqlite2/test/userfunctions.py -> build/lib.linux-i686-2.4/pysqlite2/te st
running build_ext
building 'pysqlite2._sqlite' extension
creating build/temp.linux-i686-2.4
creating build/temp.linux-i686-2.4/src
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -fPI C -DMODULE_NAME="pysqlite2.dbapi2" -I/usr/local/include -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:33:21: error: sqlite3.h: No such file or directory
In file included from src/module.c:24:
src/connection.h:38: error: syntax error before ‘sqlite3’
src/connection.h:38: warning: no semicolon at end of struct or union
src/connection.h:109: error: syntax error before ‘}’ token
src/connection.h:109: warning: type defaults to ‘int’ in declaration of ‘Connect ion’
src/connection.h:109: warning: data definition has no type or storage class
src/connection.h:114: error: syntax error before ‘*’ token
src/connection.h:114: warning: function declaration isn’t a prototype
src/connection.h:115: error: syntax error before ‘*’ token
src/connection.h:115: warning: function declaration isn’t a prototype
src/connection.h:116: error: syntax error before ‘*’ token
src/connection.h:116: warning: function declaration isn’t a prototype
src/connection.h:117: error: syntax error before ‘*’ token
src/connection.h:117: warning: function declaration isn’t a prototype
src/connection.h:118: error: syntax error before ‘*’ token
src/connection.h:118: warning: function declaration isn’t a prototype
src/connection.h:119: error: syntax error before ‘*’ token
src/connection.h:119: warning: function declaration isn’t a prototype
src/connection.h:120: error: syntax error before ‘*’ token
src/connection.h:120: warning: function declaration isn’t a prototype
src/connection.h:122: error: syntax error before ‘*’ token
src/connection.h:122: warning: function declaration isn’t a prototype
src/connection.h:124: error: syntax error before ‘*’ token
src/connection.h:124: warning: function declaration isn’t a prototype
src/connection.h:125: error: syntax error before ‘*’ token
src/connection.h:125: warning: function declaration isn’t a prototype
In file included from src/module.c:25:
src/statement.h:37: error: syntax error before ‘sqlite3’
src/statement.h:37: warning: no semicolon at end of struct or union
src/statement.h:38: warning: type defaults to ‘int’ in declaration of ‘st’
src/statement.h:38: warning: data definition has no type or storage class
src/statement.h:42: error: syntax error before ‘}’ token
src/statement.h:42: warning: type defaults to ‘int’ in declaration of ‘Statement ’
src/statement.h:42: warning: data definition has no type or storage class
src/statement.h:46: error: syntax error before ‘*’ token
src/statement.h:46: warning: function declaration isn’t a prototype
src/statement.h:47: error: syntax error before ‘*’ token
src/statement.h:47: warning: function declaration isn’t a prototype
src/statement.h:49: error: syntax error before ‘*’ token
src/statement.h:49: warning: function declaration isn’t a prototype
src/statement.h:50: error: syntax error before ‘*’ token
src/statement.h:50: warning: function declaration isn’t a prototype
src/statement.h:52: error: syntax error before ‘*’ token
src/statement.h:52: warning: function declaration isn’t a prototype
src/statement.h:53: error: syntax error before ‘*’ token
src/statement.h:53: warning: function declaration isn’t a prototype
src/statement.h:54: error: syntax error before ‘*’ token
src/statement.h:54: warning: function declaration isn’t a prototype
src/statement.h:55: error: syntax error before ‘*’ token
src/statement.h:55: warning: function declaration isn’t a prototype
In file included from src/module.c:26:
src/cursor.h:35: error: syntax error before ‘Connection’
src/cursor.h:35: warning: no semicolon at end of struct or union
src/cursor.h:42: error: syntax error before ‘*’ token
src/cursor.h:42: warning: type defaults to ‘int’ in declaration of ‘statement’
src/cursor.h:42: warning: data definition has no type or storage class
src/cursor.h:46: error: syntax error before ‘}’ token
src/cursor.h:46: warning: type defaults to ‘int’ in declaration of ‘Cursor’
src/cursor.h:46: warning: data definition has no type or storage class
src/cursor.h:56: error: syntax error before ‘*’ token
src/cursor.h:56: warning: function declaration isn’t a prototype
src/cursor.h:57: error: syntax error before ‘*’ token
src/cursor.h:57: warning: function declaration isn’t a prototype
src/cursor.h:58: error: syntax error before ‘*’ token
src/cursor.h:58: warning: function declaration isn’t a prototype
src/cursor.h:59: error: syntax error before ‘*’ token
src/cursor.h:59: warning: function declaration isn’t a prototype
src/cursor.h:60: error: syntax error before ‘*’ token
src/cursor.h:60: warning: function declaration isn’t a prototype
src/cursor.h:61: error: syntax error before ‘*’ token
src/cursor.h:61: warning: function declaration isn’t a prototype
src/cursor.h:62: error: syntax error before ‘*’ token
src/cursor.h:62: warning: function declaration isn’t a prototype
src/cursor.h:63: error: syntax error before ‘*’ token
src/cursor.h:63: warning: function declaration isn’t a prototype
src/cursor.h:64: error: syntax error before ‘*’ token
src/cursor.h:64: warning: function declaration isn’t a prototype
src/cursor.h:65: error: syntax error before ‘*’ token
src/cursor.h:65: warning: function declaration isn’t a prototype
src/cursor.h:66: error: syntax error before ‘*’ token
src/cursor.h:66: warning: function declaration isn’t a prototype
In file included from src/module.c:29:
src/microprotocols.h:55: error: syntax error before ‘*’ token
src/microprotocols.h:55: warning: function declaration isn’t a prototype
src/module.c: In function ‘module_complete’:
src/module.c:90: warning: implicit declaration of function ‘sqlite3_complete’
src/module.c: In function ‘init_sqlite’:
src/module.c:294: warning: implicit declaration of function ‘sqlite3_libversion’
src/module.c:294: warning: passing argument 1 of ‘PyString_FromString’ makes poi nter from integer without a cast
error: command 'gcc' failed with exit status 1
wie kann ich das beheben, da es doch eigentlich eine funktionierende version sein sollte, kann ich nicht soviel mit den anscheinend zahlreichen syntaxfehlern anfangen, habe auch zwei kompiler ausprobiert (gcc, g++)
Benutzeravatar
gerold
Python-Forum Veteran
Beiträge: 5555
Registriert: Samstag 28. Februar 2004, 22:04
Wohnort: Oberhofen im Inntal (Tirol)
Kontaktdaten:

http://halvar.at | Kleiner Bascom AVR Kurs
Wissen hat eine wunderbare Eigenschaft: Es verdoppelt sich, wenn man es teilt.
Benutzeravatar
gerold
Python-Forum Veteran
Beiträge: 5555
Registriert: Samstag 28. Februar 2004, 22:04
Wohnort: Oberhofen im Inntal (Tirol)
Kontaktdaten:

murph hat geschrieben:src/connection.h:33:21: error: sqlite3.h: No such file or directory
Hi murph!

Vielleicht brauchst du einfach zusätzlich den Quellcode von SQLite. Vielleicht gibt es dafür ein eigenes xxx-dev-Paket in deiner Linux-Distribution, die du uns leider nicht mitgeteilt hast.

mfg
Gerold
:-)
http://halvar.at | Kleiner Bascom AVR Kurs
Wissen hat eine wunderbare Eigenschaft: Es verdoppelt sich, wenn man es teilt.
murph
User
Beiträge: 622
Registriert: Freitag 14. April 2006, 19:23
Kontaktdaten:

das hat sich alles über apt-get erledigt.
nun werde ich wohl unter tabellen erstellen :-)
Antworten