0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

RockyLinux 9.xとUbuntu22.xにOpenSSL 3.4.x/3.5.xをインストールする(ソースからビルド)

0
Last updated at Posted at 2025-07-26

RockyLinux 9系では標準でOpenSSL 3系がインストールされていますが、あえて最新バージョンをソースからインストールしたい時に利用します。
3.4系、3.5系のいずれも対応可能です。

環境

ソフトウェア バージョン
OS RockyLinux 9.6 or Ubunt 24.04
OS OpenSSL 3.5.1

事前準備

予め以下のPerlパッケージをインストールしておく

sudo dnf install perl-FindBin perl-IPC-Cmd perl-Pod-Html

インストール

cd /usr/local/src
wget https://github.com/openssl/openssl/releases/download/openssl-3.5.1/openssl-3.5.1.tar.gz
tar xvzf openssl-3.5.1.tar.gz
cd openssl-3.5.1
./config -fPIC --shared --prefix=/usr/local/ssl
make -j 4
make install

以上で、/usr/local/sslに、OpenSSL3.5.xがインストールされます。
「--prefix」を付与しないと、/usr/local配下に直接インストールされるため、デフォルトインストールのOpenSSLとパスの設定によっては競合を起こすのでサブディレクトリにインストールすることが望ましいと思います。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?