Skip to content

Instantly share code, notes, and snippets.

@erichideki
Last active March 24, 2021 14:32
Show Gist options
  • Save erichideki/7ff5dac761f0d1833cba1937c4251cd1 to your computer and use it in GitHub Desktop.
Save erichideki/7ff5dac761f0d1833cba1937c4251cd1 to your computer and use it in GitHub Desktop.
ERROR: The Python ssl extension was not compiled. Missing the OpenSSL lib?

Erro

ERROR: The Python ssl extension was not compiled. Missing the OpenSSL lib?

Please consult to the Wiki page to fix the problem. https://github.com/pyenv/pyenv/wiki/Common-build-problems

BUILD FAILED (Ubuntu 20.04 using python-build 1.2.24.1)

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

Last 10 log lines: rm -f /home/eric/.pyenv/versions/2.7.9/share/man/man1/python.1 (cd /home/eric/.pyenv/versions/2.7.9/share/man/man1; ln -s python2.1 python.1) if test "xno" != "xno" ; then
case no in
upgrade) ensurepip="--upgrade" ;;
install|*) ensurepip="" ;;
esac;
./python -E -m ensurepip
$ensurepip --root=/ ;
fi

Para resolver:

sudo nano /etc/apt/sources.list

add deb http://security.ubuntu.com/ubuntu bionic-security main

sudo apt update && apt-cache policy libssl1.0-dev

sudo apt-get install libssl1.0-dev

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment