24

ubuntu 22.04 build python 3.x missing openssl solution

 1 year ago
source link: https://perfectnewer.github.io/personal-note/post/python/build_python3_ubuntu22/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

ubuntu 22.04 build python 3.x missing openssl solution

@Simon Wei · Jun 29, 2022 · 91 Words · 1 min read

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

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

ubuntu 22.04 build python 3.x error:

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 22.04 using python-build 20180424)

Inspect or clean up the working tree at /tmp/python-build.20220629172729.3400406
Results logged to /tmp/python-build.20220629172729.3400406.log
  1. 使用自己下载编译的openssl库
LDFLAGS="-L/opt/openssl/lib -Wl,-rpath,/opt/openssl/lib" CONFIGURE_OPTS="--with-openssl=/opt/openssl --enable-optimizations" pyenv install 3.10.4
  1. 使用brew安装的openssl库
LDFLAGS="-Wl,-rpath,=$(brew --prefix [email protected])/lib" CONFIGURE_OPTS="--with-openssl=$(brew --prefix [email protected]) --enable-optimizations" pyenv install 3.10.0

Python2 pandas import error on ubuntu22

© This post is licensed under a Creative Commons Attribution-NonCommercial 4.0 International License,please give source if you wish to quote or reproduce.


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK