Hi,
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) -------------------------------------------------------------------------------------------------------
Hi,-------------------------------
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) -------------------------------------------------------------------------=
What can I do for that ?
Vincent.
--
https://mail.python.org/mailman/listinfo/python-list
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)
-------------------------------------------------------------------------------------------------------
import sslOk.
print('Ok.')
"
You need the sources of the OpenSSL library, not the compiled library.
On Ubuntu, the packages with sources are typically named xxx-dev where
xxx is the package that provides the library. I don't have a Ubuntu currently, but try looking for something like openssl-dev or
libopenssl-dev etc.
On 2025-02-09, Left Right via Python-list <python-list@python.org> wrote:
You need the sources of the OpenSSL library, not the compiled library.
On Ubuntu, the packages with sources are typically named xxx-dev where
xxx is the package that provides the library. I don't have a Ubuntu currently, but try looking for something like openssl-dev or
libopenssl-dev etc.
Do the <library>-dev packages on Ubuntu really contain the sources for
the libraries?
I knew they contained the static libraries and the include files
required to build against the libraries, but I didn't think they
contained the library sources.
On Tue, 11 Feb 2025 at 04:04, Grant Edwards via Python-list <python-list@python.org> wrote:
On 2025-02-09, Left Right via Python-list <python-list@python.org> wrote:
You need the sources of the OpenSSL library, not the compiled library.
On Ubuntu, the packages with sources are typically named xxx-dev [...]
Do the <library>-dev packages on Ubuntu really contain the sources for
the libraries?
No they don't, and Mr "Left Right" is talking out his, uhh, "Back". :)
I knew they contained the static libraries and the include files
required to build against the libraries, but I didn't think they
contained the library sources.
They contain everything you need to link to the library. That
usually means headers and libraries, and also pkgconfig files to
point to their locations, plus anything else you might need. But no
sources. That's the job of source archives.
The -dev packages also contain the man pages for the libraries. It
surprised me at first that the man pages weren't installed by the
"normal" lib packages. But, if you're not writing/building apps that
link with library X, you don't need the man pages for library X.
Sysop: | Tetrazocine |
---|---|
Location: | Melbourne, VIC, Australia |
Users: | 6 |
Nodes: | 8 (0 / 8) |
Uptime: | 136:38:53 |
Calls: | 154 |
Files: | 21,500 |
Messages: | 79,239 |