Build python 3.12.1 with openssl

i hava build openssl 3.2
when i config the build with openssl.


@aisk

1 Like

image

image

image

Hi and welcome. I’m not sure what you’re trying to find out here. Please ask something instead of only showing screenshots; and please edit to put the information in a single post. It’s also better to use plain text to show the terminal (please format it the same way as code; see the pinned thread for help), since then we can copy and paste from it when we reply.

That said, you can try telling configure where your OpenSSL is located. There’s also a general developers’ guide for building Python here:

Because you are using yum (and I assume this is on RHEL or something similar), you should be able to get all the dependencies at once with yum-builddep python3 (as long as you have yum-utils already).

2 Likes

There are multiple ways to resolve the problem. If you want install the distro shipped OpenSSL, you are using the wroung name in the yum command. You can easily find out the real package name via Google.

In my personal view, using the distro shipped OpenSSL is the most easily method, unless you’re using a too old distro versions.

Check the red marked pieces and follow especially the first one. It says necessary bits are missing and you should look into the configure.ac and the config.log.

You say you use ssl module higher than 1.1.1, but how did you check that other than just believing the folder name to tell you the truth?

1 Like

after some research, i hava found the problem. the ld search path,
ld -lssl -lcrypto report the error
image
the ld search the libssl.so but the openssl build result libssl.so.3,
when i add the libssl alias to libssl.so.3, it works

2 Likes