Thanks! That helps, but now I'm getting a new error. I /think/ I need to add the GCC include folder to my pythonpath, but I'm not sure how to do that in Linux. I haven't had any luck over the last 15 minutes or so, so I'll work on it some more after work tonight. If someone could confirm that that would work, and/or tell me how to get/set my pythonpath in Linux, I'd be very appreciative.
<br><br>Thanks!<br><br>*** Excerpt from latest setup build ***<br>mwyatt@mwyatt-laptop:~/python$ python setup.py build<br>running build<br>running build_ext<br>building 'test' extension<br>gcc -pthread -fno-strict-aliasing -DNDEBUG -g -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/python2.5 -c
test.c -o build/temp.linux-x86_64-2.5/test.o<br>In file included from /usr/lib/gcc/x86_64-linux-gnu/4.1.2/include/syslimits.h:7,<br> from /usr/lib/gcc/x86_64-linux-gnu/4.1.2/include/limits.h:11,<br> from /usr/include/python2.5/Python.h:18,
<br> from test.c:3:<br>/usr/lib/gcc/x86_64-linux-gnu/4.1.2/include/limits.h:122:61: error: limits.h: No such file or directory<br>In file included from test.c:3:<br>/usr/include/python2.5/Python.h:32:19: error:
stdio.h: No such file or directory<br>/usr/include/python2.5/Python.h:34:5: error: #error "Python.h requires that stdio.h define NULL."<br>/usr/include/python2.5/Python.h:37:20: error: string.h: No such file or directory
<br>/usr/include/python2.5/Python.h:39:19: error: errno.h: No such file or directory<br>/usr/include/python2.5/Python.h:41:20: error: stdlib.h: No such file or directory<br>/usr/include/python2.5/Python.h:43:20: error: unistd.h
: No such file or directory<br>/usr/include/python2.5/Python.h:55:20: error: assert.h: No such file or directory<br><br><br><div><span class="gmail_quote">On 5/8/07, <b class="gmail_sendername">Robert Kern</b> <<a href="mailto:robert.kern@gmail.com">
robert.kern@gmail.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Mike Wyatt wrote:<br>> I'd like to build the modules on my new Ubuntu box. I made a trivial
<br>> little Pyrex script that I'm trying to build with distutils. I copied<br>> and modified Setup.py from the Demos folder. I'm using Pyrex 0.9.5.1a<br>> and whatever the default installation of GCC is for Ubuntu
7.04.<br>><br>> When I try to run the setup script (i.e. "python setup.py build"), I get<br>> a ton of errors. Below you can see the content of my .pyx script, my<br>> setup.py script, and the error messages I get when I attempt to build
<br>> setup.py.<br>><br>> It looks like GCC can't find Python.h. I'm not sure what to do about<br>> that, though. I'm pretty new to Linux, and I was hoping that this setup<br>> script would help me avoid most of these kind of issues.
<br><br>Make sure you have the python2.5-dev package installed. It has the header files.<br><br>--<br>Robert Kern<br><br>"I have come to believe that the whole world is an enigma, a harmless enigma<br> that is made terrible by our own mad attempt to interpret it as though it had
<br> an underlying truth."<br> -- Umberto Eco<br><br><br>_______________________________________________<br>Pyrex mailing list<br><a href="mailto:Pyrex@lists.copyleft.no">Pyrex@lists.copyleft.no</a><br><a href="http://lists.copyleft.no/mailman/listinfo/pyrex">
http://lists.copyleft.no/mailman/listinfo/pyrex</a><br></blockquote></div><br>