Saturday, December 2, 2023
rated 0 times [  1] [ 0]  / answers: 1 / hits: 8555  / 2 Years ago, fri, october 22, 2021, 6:58:52

I trying to install python3.8.13 via Pyenv in Ubuntu 22.04, and this appear the error:

kev@kev-Modern-15-A5M:~$ pyenv install 3.8.13
Installing Python-3.8.13...
ERROR: The Python ssl extension was not compiled. Missing the OpenSSL lib?

Please consult to the Wiki page to fix the problem.

BUILD FAILED (Ubuntu 22.04 using python-build 20180424)

Inspect or clean up the working tree at /tmp/python-build.20220630110509.21390
Results logged to /tmp/python-build.20220630110509.21390.log

Last 10 log lines:
./python -E -m ensurepip
$ensurepip --root=/ ;
Looking in links: /tmp/tmp_uhv2abg
Processing /tmp/tmp_uhv2abg/setuptools-56.0.0-py3-none-any.whl
Processing /tmp/tmp_uhv2abg/pip-22.0.4-py3-none-any.whl
Installing collected packages: setuptools, pip
WARNING: The scripts pip3 and pip3.8 are installed in '/home/kev/.pyenv/versions/3.8.13/bin' which is not on PATH.
Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
Successfully installed pip-22.0.4 setuptools-56.0.0

But I had installed OpenSSL before

kev@kev-Modern-15-A5M:~$ openssl version -a
OpenSSL 1.1.1p 21 Jun 2022
built on: Tue Jun 21 13:39:39 2022 UTC
platform: linux-x86_64
options: bn(64,64) md2(char) rc4(8x,int) des(int) idea(int) blowfish(ptr)
OPENSSLDIR: "/home/linuxbrew/.linuxbrew/etc/[email protected]"
ENGINESDIR: "/home/linuxbrew/.linuxbrew/Cellar/[email protected]/1.1.1p/lib/engines-1.1"

More From » package-management


Give another go at force removing the brewed version of openssl

brew uninstall --force openssl

Then clean up any older versions and clear the brew cache

brew cleanup -s openssl

Remove any dead symlinks

brew cleanup --prune-prefix

Then try reinstalling openssl

brew install openssl

[#385] Sunday, October 24, 2021, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.

Total Points: 106
Total Questions: 148
Total Answers: 129

Location: Monaco
Member since Sun, Jan 1, 2023
12 Months ago