**************************************************

Update: The Fix

I have a fix on this, here is the solution. Thank you all for your assistance.

Steps as I followed Install the Openssl in a local directory. cd /usr/local/src wget https://www.openssl.org/source/openssl-1.0.2-latest.tar.gz # gett +ing the openssl package tar -zxf openssl-1.0.2-latest.tar.gz Make and install Openssl cd openssl-1.0.2a ./config make make test make install # moved old openssl and created openssl with symbolic link mv /usr/bin/openssl /root/ ln -s /usr/local/ssl/bin/openssl /usr/bin/openssl At this point when I re-ran 'perl MakeFile.PL' and 'make test' for Net +::SSLeay. I get the error can't find err.h file, to have it resloved I created a symbolic like on where look for .h files as following. cd /usr/local/include ln -s /usr/local/ssl/include/openssl At this point I re-ran 'perl MakeFile.PL' for Net::SSLeay. Not it say /usr/bin/ld: cannot find -lssl /usr/bin/ld: cannot find -lcrypto /usr/bin/ld: cannot find -lz collect2: error: ld returned 1 exit status I went ahead and installed openssl-devel package 'yum install openssl- +devel'

At this point when I re-ran 'perl MakeFile.PL' and 'make test' for Net::SSLeay, it was a sucess. There is a chance you might just need openssl-devel development package (no need for openssl source package).

*************************************************

Please bear with me as my perl and linux skills are limited. I am trying to install and REST::Client module on Redhat Linux 8.0 and it fails with below errors. After reading an article on perlmonks I installed OpenSSL

yum install openssl (I only installed it but did not set any configuration)

still cpan install of REST::Client fails. What am I doing wrong?

Any Help is greatly appreciated. Just as a side note I am using perlV5.16.3
SULLR/IO-Socket-SSL-2.049.tar.gz one dependency not OK (Net::SSLeay); additionally test harness failed /usr/bin/make test -- NOT OK //hint// to see the cpan-testers results for installing this module, t +ry: reports SULLR/IO-Socket-SSL-2.049.tar.gz OALDERS/LWP-Protocol-https-6.07.tar.gz Has already been unwrapped into directory /root/.cpan/build/LWP-Prot +ocol-https-6.07-0 OALDERS/LWP-Protocol-https-6.07.tar.gz Has already been prepared Running make for O/OA/OALDERS/LWP-Protocol-https-6.07.tar.gz Warning: Prerequisite 'IO::Socket::SSL => 1.54' for 'OALDERS/LWP-Proto +col-https-6.07.tar.gz' failed when processing 'SULLR/IO-Socket-SS +L-2.049.tar.gz' with 'make_test => NO one dependency not OK (Net: +:SSLeay); additionally test harness failed'. Continuing, but chances +to succeed are limited. cp lib/LWP/Protocol/https.pm blib/lib/LWP/Protocol/https.pm Manifying 1 pod document OALDERS/LWP-Protocol-https-6.07.tar.gz /usr/bin/make -- OK Running make test PERL_DL_NONLAZY=1 "/usr/bin/perl" "-MExtUtils::Command::MM" "-MTest::H +arness" "-e" "undef *Test::Har ness::Switches; test_harness(0, 'bl +ib/lib', 'blib/arch')" t/*.t t/apache.t ....... ok t/https_proxy.t .. skipped: no recent version of IO::Socket::SSL::Util +s All tests successful. Files=2, Tests=5, 2 wallclock secs ( 0.05 usr 0.01 sys + 0.58 cusr + 0.06 csys = 0.70 CPU) Result: PASS OALDERS/LWP-Protocol-https-6.07.tar.gz Tests succeeded but one dependency not OK (IO::Socket::SSL) OALDERS/LWP-Protocol-https-6.07.tar.gz [dependencies] -- NA KKANE/REST-Client-273.tar.gz Has already been unwrapped into directory /root/.cpan/build/REST-Cli +ent-273-0 KKANE/REST-Client-273.tar.gz Has already been prepared Running make for K/KK/KKANE/REST-Client-273.tar.gz Warning: Prerequisite 'LWP::Protocol::https => 0' for 'KKANE/REST-Clie +nt-273.tar.gz' failed when pro cessing 'OALDERS/LWP-Protocol-https +-6.07.tar.gz' with 'make_test => NO one dependency not OK (IO::So +cket::SSL)'. Continuing, but chances to succeed are limited. KKANE/REST-Client-273.tar.gz Tests succeeded but one dependency not OK (LWP::Protocol::https) KKANE/REST-Client-273.tar.gz [dependencies] -- NA Failed during this command: MIKEM/Net-SSLeay-1.81.tar.gz : make NO SULLR/IO-Socket-SSL-2.049.tar.gz : make_test NO one depen +dency not OK (Net::SSLeay); ad ditionally test harness failed OALDERS/LWP-Protocol-https-6.07.tar.gz : make_test NO one depen +dency not OK (IO::Socket::SSL) KKANE/REST-Client-273.tar.gz : make_test NO one depen +dency not OK (LWP::Protocol::h ttps)

In reply to Errors Installing REST::Client by sannag

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.