Build python 3.11 from source on centos 7
Hi
System Info: Code:
$ cat /etc/centos-release I am attempting to build python 3.11 on a centos 7 system. When I try to configure using this command: Code:
$ ./configure --prefix=/local/usr/local/python3 --enable-shared --with-ensurepip=install --enable-optimizations Code:
Python runtime state: initialized https://github.com/python/cpython/issues/94825 Which suggests I need a more up to date gcc version. Does anyone know which gcc version works for building this with optimization ? Or know where I can find out ? When it does build successfully (as mentioned in the link if I repeat it enough it eventually goes through and also if I turn off optimizations) I get the following message at the end: Quote:
Ooops sorry I missed this message at the end: Could not build the ssl module! Python requires a OpenSSL 1.1.1 or newer That explains the ssl issue. Anyone know if it is possible to install openssl 1.1.1 on centos 7 from a repository ? Or do I have to build a local version ? |
You need to use gcc 11 or something similar (probably gcc 7 would be ok too). 4.8.5 is at about (or more than) 10 years old and does not support newer c++ standards.
|
The current version of CentOS 7 is 7.9.2009 - why are you still on 7.6 yet trying to build Python 3.11 - which was released less than six weeks ago?
|
> The current version of CentOS 7 is 7.9.2009 - why are you still on 7.6 ...
Unfortunately my hands are tied on this, it's a standard install for our lab machines, however > ... yet trying to build Python 3.11 Indeed it does not need to be 3.11, I wound back to 3.8 and that build fine Thank you for your help Just in a general sense do you know if there is a way of getting hold of what version of tools is required for each version ? |
Quote:
(You may want to check whoever controls the OS of your lab machine is aware of AlmaLinux and Rocky Linux.) Quote:
I think there was one instance when I needed a specific version of either ImageMagick or GraphicsMagick and had to build it from source, but I can't remember the details. |
All times are GMT -5. The time now is 11:46 AM. |