Subject: | ACTION: Installing Net::SSLeay failed. fatal error: openssl/err.h: No such file or directory |
Date: | Mon, 14 Aug 2017 07:17:18 +0000 |
To: | "bug-Net-SSLeay [...] rt.cpan.org" <bug-Net-SSLeay [...] rt.cpan.org> |
From: | Percy Piccoli <percy.piccoli [...] genesis.swiss> |
Hi,
We have installed Perl version 5.26.0 on Red Hat Enterprise 7.2 and 7.3 Server. We like to install Net:SSLeay as a part of the REST::Client.
The installation off the Net-SSLeay verions 1.81 fail on both Red Hat OS Server. Also the --force option do not install the Ner::SSLeay.
The OpenSSL-1.0.1e from the standard Red Hat installation.
Following the output from the command line:
./cpanm Net::SSLeay
--> Working on Net::SSLeay
Fetching http://www.cpan.org/authors/id/M/MI/MIKEM/Net-SSLeay-1.81.tar.gz ... OK
Configuring Net-SSLeay-1.81 ... OK
Building and testing Net-SSLeay-1.81 ... FAIL
! Installing Net::SSLeay failed. See /root/.cpanm/work/1502685486.3870/build.log for details. Retry with --force to force install it.
Following the log details from the installation:
cpanm (App::cpanminus) 1.7043 on perl 5.026000 built for x86_64-linux
Work directory is /root/.cpanm/work/1502685486.3870
You have make /usr/bin/make
You have LWP 6.26
You have /usr/bin/tar: tar (GNU tar) 1.26
Copyright (C) 2011 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Written by John Gilmore and Jay Fenlason.
You have /usr/bin/unzip
Searching Net::SSLeay () on cpanmetadb ...
--> Working on Net::SSLeay
Fetching http://www.cpan.org/authors/id/M/MI/MIKEM/Net-SSLeay-1.81.tar.gz
-> OK
Unpacking Net-SSLeay-1.81.tar.gz
Entering Net-SSLeay-1.81
Checking configure dependencies from META.yml
Checking if you have ExtUtils::MakeMaker 6.58 ... Yes (7.30)
Configuring Net-SSLeay-1.81
Running Makefile.PL
*** Found OpenSSL-1.0.1e installed in /usr
*** Be sure to use the same compiler and options to compile your OpenSSL, perl,
and Net::SSLeay. Mixing and matching compilers is not supported.
Do you want to run external tests?
These tests *will* *fail* if you do not have network connectivity. [n] n
Checking if your kit is complete...
Looks good
Generating a Unix-style Makefile
Writing Makefile for Net::SSLeay
Writing MYMETA.yml and MYMETA.json
-> OK
Checking dependencies from MYMETA.json ...
Checking if you have ExtUtils::MakeMaker 0 ... Yes (7.30)
Checking if you have Test::More 0.60_01 ... Yes (1.302086)
Checking if you have MIME::Base64 0 ... Yes (3.15)
Building and testing Net-SSLeay-1.81
cp lib/Net/SSLeay/Handle.pm blib/lib/Net/SSLeay/Handle.pm
cp lib/Net/SSLeay.pod blib/lib/Net/SSLeay.pod
cp lib/Net/SSLeay.pm blib/lib/Net/SSLeay.pm
AutoSplitting blib/lib/Net/SSLeay.pm (blib/lib/auto/Net/SSLeay)
blib/lib/Net/SSLeay.pm: some names are not unique when truncated to 8 characters:
directory blib/lib/auto/Net/SSLeay:
do_https3.al, do_https2.al, do_https4.al, do_https.al truncate to do_https
do_httpx3.al, do_httpx2.al, do_httpx4.al truncate to do_httpx
get_https.al, get_https3.al, get_https4.al, get_http.al, get_http3.al, get_http4.al, get_httpx.al, get_httpx3
.al, get_httpx4.al truncate to get_http
head_https.al, head_https3.al, head_https4.al, head_http.al, head_http3.al, head_http4.al, head_httpx.al, hea
d_httpx3.al, head_httpx4.al truncate to head_htt
post_https.al, post_https3.al, post_https4.al, post_http.al, post_http3.al, post_http4.al, post_httpx.al, pos
t_httpx3.al, post_httpx4.al truncate to post_htt
put_https.al, put_https3.al, put_https4.al, put_http.al, put_http3.al, put_http4.al, put_httpx.al, put_httpx3
.al, put_httpx4.al truncate to put_http
ssl_read_all.al, ssl_read_until.al, ssl_read_CRLF.al truncate to ssl_read
ssl_write_all.al, ssl_write_CRLF.al truncate to ssl_writ
tcp_read_all.al, tcp_read_until.al, tcp_read_CRLF.al truncate to tcp_read
tcp_write_all.al, tcp_write_CRLF.al truncate to tcp_writ
Running Mkbootstrap for SSLeay ()
chmod 644 "SSLeay.bs"
"/usr/perl5-26/bin/perl" "-Iinc" -MExtUtils::Command::MM -e 'cp_nonempty' -- SSLeay.bs blib/arch/auto/Net/SSLea
y/SSLeay.bs 644
"/usr/perl5-26/bin/perl" "-Iinc" "/usr/perl5-26/lib/5.26.0/ExtUtils/xsubpp" -typemap '/usr/perl5-26/lib/5.26.0
/ExtUtils/typemap' -typemap '/root/.cpanm/work/1502685486.3870/Net-SSLeay-1.81/typemap' SSLeay.xs > SSLeay.xsc
mv SSLeay.xsc SSLeay.c
cc -c -fwrapv -fno-strict-aliasing -pipe -fstack-protector-strong -I/usr/local/include -D_LARGEFILE_SOURCE -D
_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -O2 -DVERSION=\"1.81\" -DXS_VERSION=\"1.81\" -fPIC "-I/usr/perl5-26/
lib/5.26.0/x86_64-linux/CORE" SSLeay.c
SSLeay.xs:163:25: fatal error: openssl/err.h: No such file or directory
#include <openssl/err.h>
^
compilation terminated.
make: *** [SSLeay.o] Error 1
-> FAIL Installing Net::SSLeay failed. See /root/.cpanm/work/1502685486.3870/build.log for details. Retry with
--force to force install it.
What are the workaround to install the Net::SSLeay?
Mit freundlichen Grüssen / kind regards,
Percy Piccoli
ITIM Consultant
Genesis Swiss Team AG
Bernstrasse 34
3072 Ostermundigen
+41 31 560 35 35
percy.piccoli@genesis.swiss
www.genesis.swiss<http://www.genesis.swiss>
[Provitex GmbH]
[Provitex GmbH]
[Genesis Swiss Team AG auf Xing]<https://www.xing.com/companies/genesisswissteamag>[Genesis Swiss Team AG bei Linked in][Genesis Swiss Team AG auf Twitter]<https://twitter.com/GenesisSwiss>
GENESIS Swiss Team AG, Bernstrasse 34, 3072 Ostermundigen, Switzerland
GENESIS Swiss Team AG, Binzstrasse 18, 8045 Zürich, Switzerland
GENESIS Swiss Team SA, avenue Industrielle 4-6, 1227 Carouge, Switzerland
MwSt Nr.: CHE-108.470.315
This message and any attachments contain privileged/confidential information of GENESIS Swiss Team AG, and may not be disclosed, used, copied, or transmitted in any form or by any means without prior written permission from GENESIS Swiss Team AG. If you are not the intended recipient, delete the message and any attachments from your system without reading or copying it, and kindly notify sender by e-mail.
Message body is not shown because it is too large.