Ist der Fehler „fatal error openssl/evp.h aufgetreten ” während der Installation des Pakets openca-base-1.5.1? Ich habe einige Fehler durchlaufen – Modul/load/conditional.pm kann nicht gefunden werden , undefiniertes Unterprogramm Scalar::Util::blessed und addMessage für Log-Slot-XML fehlgeschlagen . Glücklicherweise konnte ich all diese Fehler beheben und jetzt mit einem neuen Fehler in SSLeay.
Nachfolgend finden Sie die vollständige Fehlermeldung.
[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
So beheben Sie den schwerwiegenden Fehler openssl/evp.h Keine solche Datei oder kein solches Verzeichnis
Die Header-Datei evp.h
kommt im Allgemeinen mit openssl-devel
Paket. Als Fehlermeldung „evp.h
no such file or directory’ zeigt an, dass openssl-devel installiert wird Paket sollte den Fehler beheben. Die openssl-devel Paket enthält statische Bibliotheken und enthält Dateien, die zum Entwickeln von Anwendungen benötigt werden, die verschiedene kryptografische Algorithmen und Protokolle unterstützen.
Installieren Sie openssl devel wie unten gezeigt:
CentOS/Redhat:
yum install openssl-devel
Ubuntu/Debain:
apt-get install libssl-dev
Das war's 🙂 Versuchen Sie jetzt, das openca-base-Paket zu kompilieren, und es sollte funktionieren.