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?

【最新のOpenSSLに対応】libzipをソースコードからインストール

Posted at

最新のOpenSSL3.4.1を基本的な基盤にしたくて、libzipをソースからスクラッチしてみました。
結構ハマったのでメモ代わりに記事にしておきます。

以下、手順になります。

wget https://libzip.org/download/libzip-1.11.3.tar.gz
tar xvfz libzip-1.11.3.tar.gz
cd libzip-1.11.3

mkdir build
cd build

cmake .. -DCMAKE_INSTALL_PREFIX=/var/home/lib/libzip \
         -DCMAKE_INSTALL_RPATH=/var/home/lib/openssl/lib64:/usr/lib:/usr/lib64 \
         -DENABLE_OPENSSL=ON \
         -DOPENSSL_ROOT_DIR=/var/home/lib/openssl \
         -DOPENSSL_LIBRARIES=/var/home/lib/openssl/lib64

make
make install

cd /var/home/lib

mv libzip libzip1.11.3
ln -s libzip1.11.3 libzip

cmakeはあまり使う事がないので、パラメータを把握するまで時間がかかりました。cmakeに渡すパラメータ名がわかれば難しい事をしているわけではないので、すぐ理解できるかと思います。

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?