I am unable to install Net::SSLeay. This is what I try:

To be sure that openSSL and headers are not missing:

$ sudo apt-get update $ sudo apt-get install libnet-ssleay-perl Reading package lists... Done Building dependency tree... Done Reading state information... Done libnet-ssleay-perl is already the newest version (1.92-1build2). 0 upgraded, 0 newly installed, 0 to remove and 38 not upgraded. $ cpan Net::SSLeay

This is the last part of the error:

SSLeay.c:16543:9: warning: ‘EVP_MD_CTX_md’ is deprecated: Since OpenSS +L 3.0 [-Wdeprecated-declarations] 16543 | RETVAL = EVP_MD_CTX_md(ctx); | ^~~~~~ In file included from /usr/include/openssl/rand.h:23, from SSLeay.xs:165: /usr/include/openssl/evp.h:555:15: note: declared here 555 | const EVP_MD *EVP_MD_CTX_md(const EVP_MD_CTX *ctx); | ^~~~~~~~~~~~~ rm -f blib/arch/auto/Net/SSLeay/SSLeay.so LD_RUN_PATH="/usr/lib/x86_64-linux-gnu" cc -shared -O2 -L/usr -L/usr/ +lib64 -L/usr/lib -L/usr/local/lib -fstack-protector-strong SSLeay.o + -o blib/arch/auto/Net/SSLeay/SSLeay.so \ -L/usr -L/usr/lib64 -L/usr/lib -lssl -lcrypto -lz \ /usr/bin/ld: cannot find -lz: No such file or directory collect2: error: ld returned 1 exit status make: *** [Makefile:495: blib/arch/auto/Net/SSLeay/SSLeay.so] Error 1 CHRISN/Net-SSLeay-1.92.tar.gz make -- NOT OK

Any idea?


In reply to Install Net::SSLeay on Ubuntu server by Anonymous Monk

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.