# Build python 3.12.1 with openssl

**URL:** <https://discuss.python.org/t/build-python-3-12-1-with-openssl/44176>\
**Category:** Python Help\
**Created:** [January 26, 2024, 1:23am UTC](https://discuss.python.org/t/build-python-3-12-1-with-openssl/44176 "2024-01-26T01:23:41Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![cjdxhjj](https://sea2.discourse-cdn.com/flex002/user_avatar/discuss.python.org/cjdxhjj/32/17465_2.png) [@cjdxhjj](https://discuss.python.org/u/cjdxhjj)\
**Post date:** [January 26, 2024, 1:23am UTC](https://discuss.python.org/t/build-python-3-12-1-with-openssl/44176/1 "2024-01-26T01:23:41Z")

</div>

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

 ![image](https://us1.discourse-cdn.com/flex002/uploads/python1/original/3X/5/3/5399ac0f3ab2d7a3517619090ee4f871f1510bc8.png)  
@aisk

---

<div class="post-metadata">

**Author:** ![cjdxhjj](https://sea2.discourse-cdn.com/flex002/user_avatar/discuss.python.org/cjdxhjj/32/17465_2.png) [@cjdxhjj](https://discuss.python.org/u/cjdxhjj)\
**Post date:** [January 26, 2024, 1:24am UTC](https://discuss.python.org/t/build-python-3-12-1-with-openssl/44176/2 "2024-01-26T01:24:15Z")

</div>

![image](https://us1.discourse-cdn.com/flex002/uploads/python1/original/3X/5/9/594ef1ac5efe60b23178304ec72b958bff453e5f.png)

---

<div class="post-metadata">

**Author:** ![cjdxhjj](https://sea2.discourse-cdn.com/flex002/user_avatar/discuss.python.org/cjdxhjj/32/17465_2.png) [@cjdxhjj](https://discuss.python.org/u/cjdxhjj)\
**Post date:** [January 26, 2024, 1:25am UTC](https://discuss.python.org/t/build-python-3-12-1-with-openssl/44176/3 "2024-01-26T01:25:18Z")

</div>

![image](https://us1.discourse-cdn.com/flex002/uploads/python1/original/3X/5/3/5399ac0f3ab2d7a3517619090ee4f871f1510bc8.png)

---

<div class="post-metadata">

**Author:** ![cjdxhjj](https://sea2.discourse-cdn.com/flex002/user_avatar/discuss.python.org/cjdxhjj/32/17465_2.png) [@cjdxhjj](https://discuss.python.org/u/cjdxhjj)\
**Post date:** [January 26, 2024, 1:33am UTC](https://discuss.python.org/t/build-python-3-12-1-with-openssl/44176/4 "2024-01-26T01:33:26Z")

</div>

![image](https://us1.discourse-cdn.com/flex002/uploads/python1/original/3X/2/2/22a3308df7300f5d25cf00208d6e0fac0ab64fa6.png)

---

<div class="post-metadata">

**Author:** ![cjdxhjj](https://sea2.discourse-cdn.com/flex002/user_avatar/discuss.python.org/cjdxhjj/32/17465_2.png) [@cjdxhjj](https://discuss.python.org/u/cjdxhjj)\
**Post date:** [January 26, 2024, 1:34am UTC](https://discuss.python.org/t/build-python-3-12-1-with-openssl/44176/5 "2024-01-26T01:34:25Z")

</div>

![image](https://us1.discourse-cdn.com/flex002/uploads/python1/original/3X/e/e/ee4e881064fa55072177b1f5a43ea780daed3282.png)

---

<div class="post-metadata">

**Author:** ![kknechtel](https://avatars.discourse-cdn.com/v4/letter/k/e47c2d/32.png) [@kknechtel](https://discuss.python.org/u/kknechtel)\
**Post date:** [January 26, 2024, 6:38am UTC](https://discuss.python.org/t/build-python-3-12-1-with-openssl/44176/6 "2024-01-26T06:38:59Z")

</div>

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](https://discuss.python.org/t/about-the-python-help-category/42) 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](https://docs.python.org/3/using/configure.html#cmdoption-with-openssl). There’s also a general developers’ guide for building Python here:

> **[Setup and building](https://devguide.python.org/getting-started/setup-building/index.html)**
>
> These instructions cover how to get a working copy of the source code and a compiled version of the CPython interpreter (CPython is the version of Python available from https://www.python.org/). It...

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).

---

<div class="post-metadata">

**Author:** ![aisk](https://sea2.discourse-cdn.com/flex002/user_avatar/discuss.python.org/aisk/32/8524_2.png) [@aisk](https://discuss.python.org/u/aisk)\
**Post date:** [January 26, 2024, 8:11am UTC](https://discuss.python.org/t/build-python-3-12-1-with-openssl/44176/8 "2024-01-26T08:11:36Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![MariaBu](https://avatars.discourse-cdn.com/v4/letter/m/ea5d25/32.png) [@MariaBu](https://discuss.python.org/u/MariaBu)\
**Post date:** [January 26, 2024, 10:48am UTC](https://discuss.python.org/t/build-python-3-12-1-with-openssl/44176/9 "2024-01-26T10:48:10Z")

</div>

![image](https://us1.discourse-cdn.com/flex002/uploads/python1/original/3X/3/4/34b773c6aac89d50c789a34504b22474572612c7.png)

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?

---

<div class="post-metadata">

**Author:** ![cjdxhjj](https://sea2.discourse-cdn.com/flex002/user_avatar/discuss.python.org/cjdxhjj/32/17465_2.png) [@cjdxhjj](https://discuss.python.org/u/cjdxhjj)\
**Post date:** [January 29, 2024, 5:28am UTC](https://discuss.python.org/t/build-python-3-12-1-with-openssl/44176/10 "2024-01-29T05:28:16Z")

</div>

after some research, i hava found the problem. the ld search path,  
ld -lssl -lcrypto report the error  
 ![image](https://us1.discourse-cdn.com/flex002/uploads/python1/original/3X/4/f/4f884c614457db4343d42c4cb6ece1b457c94db7.png)  
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
