> > Trying to compile Python-3.12.9 on Ubuntu-24.04 > > The compilation is complete without errors but I have this message: > > -------------------------------------------------------------------------------------------------------- > The necessary bits to build these optional modules were not found: > _hashlib _ssl nis > To find the necessary bits, look in configure.ac and config.log. > > Could not build the ssl module! > Python requires a OpenSSL 1.1.1 or newer > > -------------------------------------------------------------------------------------------------------- > > But I have a more newer version: > > > ------------------------------------------------------------------------------------------------------- > $ openssl version > OpenSSL 3.0.13 30 Jan 2024 (Library: OpenSSL 3.0.13 30 Jan 2024) > > ------------------------------------------------------------------------------------------------------- >
In case this helps you find the correct package to install: $ python3 -c "if True: > import ssl > print('Ok.') > " Ok. $ cat /etc/lsb-release DISTRIB_ID=Ubuntu DISTRIB_RELEASE=24.04 DISTRIB_CODENAME=noble DISTRIB_DESCRIPTION="Ubuntu 24.04.1 LTS" $ apt list --installed | grep ssl WARNING: apt does not have a stable CLI interface. Use with caution in scripts. libssl-dev/noble-updates,noble-security,now 3.0.13-0ubuntu3.4 amd64 [installed] libssl3t64/noble-updates,noble-security,now 3.0.13-0ubuntu3.4 amd64 [installed,automatic] libxmlsec1t64-openssl/noble,now 1.2.39-5build2 amd64 [installed,automatic] openssl/noble-updates,noble-security,now 3.0.13-0ubuntu3.4 amd64 [installed,automatic] ssl-cert/noble,noble,now 1.1.2ubuntu1 all [installed,automatic] -- https://mail.python.org/mailman/listinfo/python-list