[Tutor] Building Python 2.7.3 on RHEL 5.8 x86_64 -- Syntax Error
Sean Carolan
scarolan at gmail.com
Tue Mar 26 17:54:03 CET 2013
Ok, so I'm now attempting a "clean room" installation using Python 2.7.3 to
build the RPM. Here's my installation command:
./configure --with-zlib=/usr/include; make; sudo make install
But the bdist_rpm setup command fails:
[scarolan at titania:~/Python-2.7.3]$ python2.7 setup.py bdist_rpm
error: pyconfig.h: No such file or directory
error: Bad exit status from /var/tmp/rpm-tmp.67699 (%build)
RPM build errors:
Bad exit status from /var/tmp/rpm-tmp.67699 (%build)
error: command 'rpmbuild' failed with exit status 1
Where is it looking for pyconfig.h?
On Tue, Mar 26, 2013 at 10:18 AM, Sean Carolan <scarolan at gmail.com> wrote:
>
> Could it be that it is taking the system python executable which is
>> probably 2.4?
>>
>> -Amit.
>
>
> I've tried it with python24, python25 and python27 and all of them give
> the same error.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20130326/89bf920f/attachment.html>
More information about the Tutor
mailing list