Search code examples
python-3.xlinuxopensslpython-3.9

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

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