Donate. I desperately need donations to survive due to my health

Get paid by answering surveys Click here

Click here to donate

Remote/Work from Home jobs

Generate rpm for required python version - Python-2.7.15

How can i generate Python-2.7.15 rpm for Centos 7.5.

I downloaded the tarball from https://www.python.org/ftp/python/2.7.15/Python-2.7.15.tgz

Then tried python setup.py bdist_rpm

But we are getting below error:

+ cd /root/rpmbuild/SOURCES/Python-2.7.15/build/bdist.linux-x86_64/rpm/BUILD
+ cd Python-2.7.15
+ env 'CFLAGS=-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches   -m64 -mtune=generic' python setup.py build
running build
running build_ext
error: pyconfig.h: No such file or directory
error: Bad exit status from /var/tmp/rpm-tmp.fW7Nnf (%build)
    Bad exit status from /var/tmp/rpm-tmp.fW7Nnf (%build)

I tried online and couldn't find any availables RPMs or tutorials.

Comments