Hello,

I am new to Django. I have successfully installed sqlite3, but cannot
install its companion program pysqlite2.  Below is the what I get from
running 'python setup.py build'. The error I eventually receive is
'error: command 'gcc' failed with exit status 1'. Any ideas what could
be going on? Thank you for your help!

[EMAIL PROTECTED] pysqlite-2.3.5]# 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/ -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
In file included from src/module.c:24:
src/connection.h:37: error: expected specifier-qualifier-list before
'PyObject_HEAD'
src/connection.h:111: error: expected '=', ',', ';', 'asm' or
'__attribute__' before 'pysqlite_ConnectionType'
src/connection.h:113: error: expected '=', ',', ';', 'asm' or
'__attribute__' before '*' token
src/connection.h:115: error: expected '=', ',', ';', 'asm' or
'__attribute__' before '*' token
src/connection.h:116: error: expected '=', ',', ';', 'asm' or
'__attribute__' before '*' token
src/connection.h:117: error: expected '=', ',', ';', 'asm' or
'__attribute__' before '*' token
src/connection.h:118: error: expected '=', ',', ';', 'asm' or
'__attribute__' before '*' token
src/connection.h:119: error: expected '=', ',', ';', 'asm' or
'__attribute__' before '*' token
src/connection.h:120: error: expected '=', ',', ';', 'asm' or
'__attribute__' before '*' token
src/connection.h:121: error: expected declaration specifiers or '...'
before 'PyObject'
src/connection.h:121: 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:37: error: expected '=', ',', ';', 'asm' or
'__attribute__' before '*' token
src/microprotocols.h:48: error: expected ')' before '*' token
src/microprotocols.h:50: error: expected ')' before '*' token
src/microprotocols.h:51: error: expected '=', ',', ';', 'asm' or
'__attribute__' before '*' token
src/microprotocols.h:54: 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:104: 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: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


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to