私は前に試しました
wget https://www.python.org/ftp/python/3.9.4/Python-3.9.4.tgz
tar xvzf Python-3.9.4.tgz
ソースディレクトリに移動
./configure
make
その後、複数行後にエラーが発生します。
Could not build the ssl module!
Python requires an OpenSSL 1.0.2 or 1.1 compatible libssl with X509_VERIFY_PARAM_set1_host().
LibreSSL 2.6.4 and earlier do not provide the necessary APIs, https://github.com/libressl-portable/portable/issues/381
確認しましたが、どうすればいいかわかりません。
openssl version
OpenSSL 1.0.2p-fips 14 Aug 2018
そして
openssl-1_1 version
OpenSSL 1.1.1d 10 Sep 2019
そしてルートから始めます。
Reading installed packages...
S | Name | Summary | Type
---+----------------------------+-----------------------------------+-----------
i+ | libgnutls-openssl27 | The GNU Transport Layer Securit-> | package
i | libopenssl-1_0_0-devel | Development files for OpenSSL | package
i+ | libopenssl-devel | Include Files and Libraries man-> | package
i | libopenssl1_0_0 | Secure Sockets and Transport La-> | package
i | libopenssl1_0_0-32bit | Secure Sockets and Transport La-> | package
i | libopenssl1_1 | Secure Sockets and Transport La-> | package
i | libxmlsec1-openssl1 | OpenSSL crypto plugin for XML S-> | package
i | openssl | Secure Sockets and Transport La-> | package
i | openssl-1_0_0 | Secure Sockets and Transport La-> | package
i+ | openssl-1_1 | Secure Sockets and Transport La-> | package
i+ | python3-pyOpenSSL | Python wrapper module around th-> | package
どんなアイデアがありますか? SLES 12.5でPython 3.9を使用できないのですか?私が持つことができる最も高いバージョンは何ですか? (もちろん私はすでにzypperの基本3.6を持っています)
opensslのルートディレクトリを設定する必要があるかもしれませんが、正確にどこにいるのかわかりません。
which openssl-1_1
/usr/bin/openssl-1_1
うん/usr/bin
? (私はそうは思わない)
ベストアンサー1
システムにインストールしたバージョンは、openssl-devel
Python 3.9を構築するのと同じくらい新しいバージョンではありません。バージョン1.0.0のみのSLES 12を実行していますが、Python 3.9には少なくとも1.0.2、好ましくは1.1が必要なため、必要な開発ライブラリを含む多くのパッケージでこの問題が発生します。
あなたができる唯一のことは、ソースからOpenssl 1.0.2または1.1をビルドし、それを環境に追加することです。システムに十分に新しくない他の必須パッケージに対しても同じことを行う必要があります。 SLES 12は引き続きサポートされていますが、最新のソフトウェア(Python 3.9など)の最新パッケージは提供されていません。