Avez-vous rencontré une erreur "erreur fatale openssl/evp.h " lors de l'installation du package openca-base-1.5.1 ? J'ai rencontré quelques erreurs - Impossible de localiser le module/load/conditional.pm , sous-programme indéfini Scalar::Util::blessed et addMessage a échoué pour l'emplacement de journal XML . Heureusement, j'ai pu corriger toutes ces erreurs et maintenant avec une nouvelle erreur dans SSLeay.
Vous trouverez ci-dessous le message d'erreur complet.
[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
Comment corriger l'erreur fatale openssl/evp.h Aucun fichier ou répertoire de ce type
Le fichier d'en-tête evp.h
vient généralement avec openssl-devel
emballer. Comme le message d'erreur 'evp.h
aucun fichier ou répertoire de ce type n'indique, en installant openssl-devel package devrait résoudre l'erreur. Le openssl-devel contient des bibliothèques statiques et inclut les fichiers nécessaires au développement d'applications prenant en charge divers algorithmes et protocoles cryptographiques.
Installez openssl devel comme indiqué ci-dessous :
CentOS/Redhat :
yum install openssl-devel
Ubuntu/Debain :
apt-get install libssl-dev
C'est tout 🙂 Essayez maintenant de compiler le paquet openca-base et cela devrait fonctionner.