'Unable to install Python 3.9.10 on Linux 7

Getting the below error while configuring python3.9.10 with the below command

./configure --prefix=/opt/python3 --with-openssl=/usr/local/openssl/include/openssl

checking for openssl/ssl.h in /usr/local/openssl/bin/openssl... no

checking whether compiling and linking against OpenSSL works... no

Using linux version 7 and openssl version OpenSSL 1.1.1n 15 Mar 2022



Solution 1:[1]

Install libssl-dev in Debian/Ubuntu or openssl-devel in RH/CentOS

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Telinov Dmitri