¿Se encontró con un error “error fatal openssl/evp.h ” al instalar el paquete openca-base-1.5.1? Me encontré con algunos errores:No se puede ubicar el módulo/carga/condicional.pm , subrutina indefinida Scalar::Util::blessed y addMessage falló para la ranura de registro XML . Afortunadamente, pude corregir todos esos errores y ahora tengo un nuevo error en SSLeay.
A continuación se muestra el mensaje de error completo.
[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
Cómo solucionar el error fatal openssl/evp.h No existe tal archivo o directorio
El archivo de encabezado evp.h
generalmente viene con openssl-devel
paquete. Como el mensaje de error 'evp.h
no existe tal archivo o directorio’ indica, instalando openssl-devel El paquete debería resolver el error. El openssl-devel El paquete contiene bibliotecas estáticas e incluye archivos necesarios para desarrollar aplicaciones compatibles con varios algoritmos y protocolos criptográficos.
Instala el desarrollo de openssl como se muestra a continuación:
CentOS/Redhat:
yum install openssl-devel
Ubuntu/Debain:
apt-get install libssl-dev
Eso es todo 🙂 Ahora intente compilar el paquete openca-base y debería funcionar.