How to Fix Errors During openssl 1.1.1 Installation On CentOS 7

OpenSSL is a powerful open source security toolkit that provides a library of software tools for secure communication on the internet. It is designed to help developers create secure applications and protect their users’ data. OpenSSL provides encryption, authentication, and digital signature services that are essential for web application security. With OpenSSL, system administrator or system developers can easily implement secure communication protocols such as SSL/TLS and SSH.

OpenSSL also allows developers to easily manage certificates and other cryptographic keys used in authentication processes. The use of OpenSSL can help improve the security of web applications by ensuring that all communications are encrypted and authenticated properly.

Installation of older version of openssl is very much smooth if compare to latest version.In this article i will share how to can fix the erros during openssl 1.1.1 installation in CentOS.

1. How to Fix crypto/comp/c_zlib.c:35:19: fatal error

mp/comp_err.d.tmp -MT crypto/comp/comp_err.o -c -o crypto/comp/comp_err.o crypto/comp/comp_err.c
crypto/comp/c_zlib.c:35:19: fatal error: zlib.h: No such file or directory
 # include 

Solution is to install “”zlib-devel” package:

# yum install zlib-devel

2. How to Fix Can’t locate Test/Harness.pm perl Error

https://techglimpse.com/cant-locate-testharness-pm-perl-error-solution/

Can't locate Test/Harness.pm in @INC (@INC contains: /usr/src/openssl/test/../util/perl /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at .././test/run_tests.pl line 112.
BEGIN failed--compilation aborted at .././test/run_tests.pl line 112.
make[1]: *** [_tests] Error 2
make[1]: Leaving directory `/usr/src/openssl'
make: *** [tests] Error 2

The error indicates that the perl module Test::Harness is not installed.

Solution is to install “perl-Test-Harness” package:

# yum install perl-Test-Harness

3. How to Fix Parse errors: No plan found in TAP output

  Parse errors: No plan found in TAP output
../test/recipes/99-test_fuzz.t                   (Wstat: 512 Tests: 0 Failed: 0)
  Non-zero exit status: 2
  Parse errors: No plan found in TAP output
Files=158, Tests=0,  2 wallclock secs ( 0.39 usr  0.15 sys +  0.70 cusr  0.35 csys =  1.59 CPU)
Result: FAIL
make[1]: *** [_tests] Error 1
make[1]: Leaving directory `/usr/src/openssl'
make: *** [tests] Error 2

Solution is to install “perl-Test-Simple”package.

# yum install perl-Test-Simple

Leave a Comment