asdf-community / asdf-python

Python plugin for the asdf version manager
https://github.com/asdf-vm/asdf
MIT License
651 stars 56 forks source link

Unable to install python 3.10.2 on Linux Mint 20.2. #128

Closed alexandreqo closed 2 years ago

alexandreqo commented 2 years ago

When I try to install python with the command: "asdf install python 3.10.2" I receive the following message:

python-build 3.10.2 /home/alexandre/.asdf/installs/python/3.10.2 Downloading Python-3.10.2.tar.xz... -> https://www.python.org/ftp/python/3.10.2/Python-3.10.2.tar.xz Installing Python-3.10.2... WARNING: The Python bz2 extension was not compiled. Missing the bzip2 lib? WARNING: The Python readline extension was not compiled. Missing the GNU readline lib? 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 (Linuxmint 20.2 using python-build 2.2.4-1)

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

alexandreqo commented 2 years ago

I solved this problem by installing the dependencies below:

udo apt-get install make build-essential libssl-dev zlib1g-dev \ libbz2-dev libreadline-dev libsqlite3-dev wget curl llvm \ libncursesw5-dev xz-utils tk-dev libxml2-dev libxmlsec1-dev libffi-dev liblzma-dev