Hey Sandro.

On 9/13/07, Sandro Hawke <[EMAIL PROTECTED]> wrote:
>
> [sorry if this is the wrong list]

This is the right list.

> 2.   The issue I wanted to raise:
> [EMAIL PROTECTED]:/usr/local/src/rdflib-2.4.0$ sudo python setup.py install
> gcc -pthread -fno-strict-aliasing -DNDEBUG -g -O2 -Wall -Wstrict-prototypes 
> -fPIC -I/usr/include/python2.5 -c src/bison/SPARQLParser.c -o 
> build/temp.linux-i686-2.5/src/bison/SPARQLParser.o
> src/bison/SPARQLParser.c:7:20: error: Python.h: No such file or directory

You need python development headers.  On Ubuntu, that's:

apt-get install python-dev

> src/bison/SPARQLParser.c:8:26: error: structmember.h: No such file or 
> directory
> src/bison/SPARQLParser.c:15: error: expected Æ=Ç, Æ,Ç, Æ;Ç, ÆasmÇ or 
> Æ__attribute__Ç before Æ*Ç token
> I don't need SPARQL support, so if this isn't an easy fix, I'd
> appreciate a clue about how to disable this module.

It is an easy fix with Ubuntu (see above), otherwise you can do this
to your setup.py:

Index: setup.py
===================================================================
--- setup.py    (revision 1241)
+++ setup.py    (working copy)
@@ -44,9 +44,9 @@
     packages = find_packages(),

     ext_modules = [
-        Extension(
-            name='rdflib.sparql.bison.SPARQLParserc',
-            sources=['src/bison/SPARQLParser.c'],
+#        Extension(
+#            name='rdflib.sparql.bison.SPARQLParserc',
+#            sources=['src/bison/SPARQLParser.c'],
             ),
         ],

-- Chimezie

_______________________________________________
Dev mailing list
Dev@rdflib.net
http://rdflib.net/mailman/listinfo/dev

Reply via email to