Skip to content

Python-3.12.4 can not find OpenSSL in /usr/local #121908

@blastwave

Description

@blastwave

Bug report

Bug description:

Trivial attempt to compile Python from source fails over and over in that it
can not locate OpenSSL in the "prefix" directory /usr/local .

The configure was entirely trivial :

 ./configure --prefix=/usr/local --with-openssl=/usr/local 

Does OpenSSL exist ?

$ which openssl
/usr/local/bin/openssl
$ openssl version 
OpenSSL 3.3.1 4 Jun 2024 (Library: OpenSSL 3.3.1 4 Jun 2024)

Yep .. it is right there. Dead easy.
However a compile fails over and over and over with the same message :

Following modules built successfully but were removed because they could not be imported:
_ssl                                                           

Could not build the ssl module!
Python requires a OpenSSL 1.1.1 or newer

So this has to be a bug in the build system somewhere.

CPython versions tested on:

3.12

Operating systems tested on:

Linux

Metadata

Metadata

Assignees

No one assigned

    Labels

    buildThe build process and cross-buildtype-bugAn unexpected behavior, bug, or error

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions