「致命的なエラーopenssl/evp.h」というエラーが発生しましたか 」openca-base-1.5.1パッケージのインストール中に?いくつかのエラーが発生しました– module / load/conditional.pmが見つかりません 、未定義のサブルーチンScalar ::Util ::blessed およびログスロットXMLのaddMessageが失敗しました 。幸い、これらのエラーをすべて修正することができましたが、SSLeayで新しいエラーが発生しました。
以下は完全なエラーメッセージです。
[root@openra Net-SSLeay-1.40]# perl Makefile.PL Cannot determine perl version info from lib/Net/SSLeay.pm Cannot determine license info from lib/Net/SSLeay.pm *** Found OpenSSL-1.0.2k installed in /usr *** That's newer than what this module was tested with You should consider checking if there is a newer release of this module available. Everything will probably work OK, though. *** Be sure to use the same compiler and options to compile your OpenSSL, perl, and Net::SSLeay. Mixing and matching compilers is not supported. Generating a Unix-style Makefile Writing Makefile for Net::SSLeay Writing MYMETA.yml and MYMETA.json [root@openra Net-SSLeay-1.40]# make Skip blib/lib/Net/SSLeay.pm (unchanged) Skip blib/lib/Net/SSLeay/Handle.pm (unchanged) Running Mkbootstrap for SSLeay () chmod 644 "SSLeay.bs" "/usr/bin/perl" "-Iinc" -MExtUtils::Command::MM -e 'cp_nonempty' -- SSLeay.bs blib/arch/auto/Net/SSLeay/SSLeay.bs 644 gcc -c -I/usr/include -I/usr/inc32 -I/usr/kerberos/include -D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -g -DVERSION=\"1.40\" -DXS_VERSION=\"1.40\" -fPIC "-I/usr/lib64/perl5/CORE" SSLeay.c SSLeay.xs:92:25: fatal error: openssl/evp.h: No such file or directory
致命的なエラーを修正する方法openssl/evp.hそのようなファイルまたはディレクトリはありません
>
ヘッダーファイルevp.h
通常、openssl-devel
が付属しています パッケージ。エラーメッセージとして「evp.h
そのようなファイルやディレクトリはありません」と表示され、 openssl-develをインストールします パッケージはエラーを解決するはずです。 openssl-devel パッケージには静的ライブラリが含まれており、さまざまな暗号化アルゴリズムとプロトコルをサポートするアプリケーションの開発に必要なファイルが含まれています。
以下に示すようにopenssldevelをインストールします:
CentOS / Redhat:
yum install openssl-devel
Ubuntu / Debain:
apt-get install libssl-dev
以上です🙂openca-baseパッケージをコンパイルしてみてください。動作するはずです。