November 27, 2022

how to succesfully compile python 3.x(GCC)

In case others come across this question: I encountered the same problem on Centos 7. I also had --enable-optimizations but didn’t want to remove that flag. Updating my build dependencies and then re-running solved the problem. To do that I ran:

sudo yum groupinstall "Development Tools" -y

In case the yum group is not available, you can also install the pacakges individually using:

sudo yum install bison byacc cscope ctags cvs diffstat doxygen flex gcc gcc-c++ gcc-gfortran gettext git indent intltool libtool patch patchutils rcs redhat-rpm-config rpm-build subversion swig systemtap

Leave a Reply

Your email address will not be published. Required fields are marked *