[Tutor] Building Python 2.7.3 on RHEL 5.8 x86_64 -- Syntax Error

Sean Carolan scarolan at gmail.com
Tue Mar 26 20:21:35 CET 2013


> If so, what was your secret?
>
>
I tried running this again with strace, and it looks like it's finding the
pyconfig.h file:

open("/usr/local/include/python2.7/pyconfig.h", O_RDONLY) = 4
read(4, "/* pyconfig.h.  Generated from p"..., 4096) = 4096
stat("pyconfig.h", {st_mode=S_IFREG|0664, st_size=36037, ...}) = 0
stat("pyconfig.h.in", {st_mode=S_IFREG|0644, st_size=34336, ...}) = 0
stat("PC/pyconfig.h", {st_mode=S_IFREG|0644, st_size=20770, ...}) = 0
stat("PC/os2vacpp/pyconfig.h", {st_mode=S_IFREG|0644, st_size=10113, ...})
= 0
stat("PC/os2emx/pyconfig.h", {st_mode=S_IFREG|0644, st_size=8096, ...}) = 0
stat("Include/pyconfig.h", {st_mode=S_IFREG|0664, st_size=36037, ...}) = 0
stat("build/bdist.linux-x86_64/rpm/BUILD/Python-2.7.3/pyconfig.h",
{st_mode=S_IFREG|0664, st_size=36037, ...}) = 0
stat("build/bdist.linux-x86_64/rpm/BUILD/Python-2.7.3/Include/pyconfig.h",
{st_mode=S_IFREG|0664, st_size=36037, ...}) = 0
stat("RISCOS/pyconfig.h", {st_mode=S_IFREG|0644, st_size=18510, ...}) = 0
open("/usr/local/include/python2.7/pyconfig.h", O_RDONLY) = 3
read(3, "/* pyconfig.h.  Generated from p"..., 4096) = 4096
error: pyconfig.h: No such file or directory

/usr/local/include/python2.7/pyconfig.h exists:

[scarolan at titania:~/Python-2.7.3]$ ls
/usr/local/include/python2.7/pyconfig.h -l
-rw-r--r-- 1 root root 36037 Mar 26 11:45
/usr/local/include/python2.7/pyconfig.h

I'm not sure exactly what the installer is expecting here...
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20130326/611193ea/attachment-0001.html>


More information about the Tutor mailing list