目次
事象
pyenvを使用してpythonをインストールしようとした時に以下のようにビルドエラーとなっている場合を想定しております。
pyenv install 3.9.0
Bash
Downloading Python-3.9.0.tar.xz...
-> https://www.python.org/ftp/python/3.9.0/Python-3.9.0.tar.xz
Installing Python-3.9.0...
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?対処
以下、開発者ツールおよびpythonビルドに追加で必要なライブラリをインストールします。
yum groupinstall "Development Tools" -y
