CentOS 7のソースからapr-utilsをビルドする - 依存関係の問題

CentOS 7のソースからapr-utilsをビルドする - 依存関係の問題

CentOS 7のソースからapr-utils-1.6.1を構築しようとしています(目標はhttpd-2.4.29を取得することです)、依存関係の問題が発生します。

# rpmbuild -tb apr-util-1.6.1.tar.bz2
error: Failed build dependencies:
    db4-devel is needed by apr-util-1.6.1-1.x86_64

db4-devel は yum には提供されませんが、libdb-devel は依存関係要件を満たさないバージョン 5 を提供します。

db4-develをダウンロードしてインストールしてみましたが、満足できない独自の依存関係があります。

# rpm -iv db4-devel-4.7.25-22.el6.x86_64.rpm 
warning: db4-devel-4.7.25-22.el6.x86_64.rpm: Header V3 RSA/SHA1 Signature, key ID c105b9de: NOKEY
error: Failed dependencies:
    db4 = 4.7.25-22.el6 is needed by db4-devel-4.7.25-22.el6.x86_64
    db4-cxx = 4.7.25-22.el6 is needed by db4-devel-4.7.25-22.el6.x86_64
    libdb-4.7.so()(64bit) is needed by db4-devel-4.7.25-22.el6.x86_64
    libdb_cxx-4.7.so()(64bit) is needed by db4-devel-4.7.25-22.el6.x86_64

Berkeley DB バージョン 5 はすでに CentOS 7 にインストールされ使用されているため、db4 のインストールにも失敗します。

# rpm -iv db4-4.7.25-22.el6.x86_64.rpm 
warning: db4-4.7.25-22.el6.x86_64.rpm: Header V3 RSA/SHA1 Signature, key ID c105b9de: NOKEY
error: Failed dependencies:
    db4 < 5 is obsoleted by (installed) libdb-5.3.21-20.el7.x86_64

今はどうすればいいのか分かりません。損失を減らすには、CentOS 6システムを1つだけ展開する必要がありますか? CentOS 6にはまだdb4があるようです。私はdb4の要件を取り除くために仕様ファイルを変更することを検討していますが、これがどのように影響するか、または正しく実行する方法がわかりません。

ありがとうございます。

ベストアンサー1

おすすめ記事