tester3 tester3 - 1 month ago 15
Perl Question

Installing Perl module LWP::Protocol::https

Need some help very much!:)

I was trying to connect to remote host via LWP::UserAgent, but when I was trying to make it work with HTTPS I received a message that

LWP::Protocol::https need to be installed. (Perl 5.10.1, CentOS 6)


I've tried to install this module with "CPAN" and with "make" and there were some errors. I've also tried to make a forced install of
LWP::Protocol::https
, now it is in list of installed modules (
ExtUtils::Installed
shows it), but the script still writes me 501 Protocol scheme 'https' is not supported (
LWP::Protocol::https
not installed).

First I needed to add
ExtUtils::CBuilder
and
ExtUtils::MakeMaker
. Then I've tried to install
Crypt::SSLeay
but I recieve these messages:

Crypt-SSLeay-0.64/t/
Crypt-SSLeay-0.64/TODO
Crypt-SSLeay-0.64/typemap
Crypt-SSLeay-0.64/t/00-basic.t
Crypt-SSLeay-0.64/t/01-connect.t
Crypt-SSLeay-0.64/t/02-live.t
Crypt-SSLeay-0.64/lib/Crypt/
Crypt-SSLeay-0.64/lib/Net/
Crypt-SSLeay-0.64/lib/Net/SSL.pm
Crypt-SSLeay-0.64/lib/Crypt/SSLeay/
Crypt-SSLeay-0.64/lib/Crypt/SSLeay/Conn.pm
Crypt-SSLeay-0.64/lib/Crypt/SSLeay/CTX.pm
Crypt-SSLeay-0.64/lib/Crypt/SSLeay/Err.pm
Crypt-SSLeay-0.64/lib/Crypt/SSLeay/MainContext.pm
Crypt-SSLeay-0.64/lib/Crypt/SSLeay/X509.pm
Crypt-SSLeay-0.64/eg/lwp-ssl-test
Crypt-SSLeay-0.64/eg/net-ssl-test
Crypt-SSLeay-0.64/certs/ca-bundle.crt
Crypt-SSLeay-0.64/certs/notacacert.pem
Crypt-SSLeay-0.64/certs/notacakeynopass.pem
CPAN: File::Temp loaded ok (v0.2301)
CPAN: Parse::CPAN::Meta loaded ok (v1.4409)
CPAN: CPAN::Meta loaded ok (v2.132661)
CPAN: Module::CoreList loaded ok (v2.99)

CPAN.pm: Building N/NA/NANIS/Crypt-SSLeay-0.64.tar.gz

The test suite can attempt to connect to public servers to ensure that the
code is working properly. If you are behind a strict firewall or have no
network connectivity, these tests may fail (through no fault of the code).
Do you want to run the live tests (y/N)? [N] y
Checking if your kit is complete...
Looks good
Warning (mostly harmless): No library found for -lssl32
Warning (mostly harmless): No library found for -lssleay32
Warning (mostly harmless): No library found for -leay32
Generating a GNU-style Makefile
Writing Makefile for Crypt::SSLeay
Writing MYMETA.yml and MYMETA.json
cp lib/Crypt/SSLeay/X509.pm blib/lib/Crypt/SSLeay/X509.pm
cp lib/Net/SSL.pm blib/lib/Net/SSL.pm
cp lib/Crypt/SSLeay/MainContext.pm blib/lib/Crypt/SSLeay/MainContext.pm
cp lib/Crypt/SSLeay/Conn.pm blib/lib/Crypt/SSLeay/Conn.pm
cp lib/Crypt/SSLeay/CTX.pm blib/lib/Crypt/SSLeay/CTX.pm
cp SSLeay.pm blib/lib/Crypt/SSLeay.pm
cp lib/Crypt/SSLeay/Err.pm blib/lib/Crypt/SSLeay/Err.pm
/usr/bin/perl /usr/local/share/perl5/ExtUtils/xsubpp -typemap /usr/share/perl5/ExtUtils/typemap -typemap typemap SSLeay.xs > SSLeay.xsc && mv SSLeay.xsc SSLeay.c
gcc -c -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 -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -DVERSION=\"0.64\" -DXS_VERSION=\"0.64\" -fPIC "-I/usr/lib64/perl5/CORE" SSLeay.c
SSLeay.xs:35:25: error: openssl/ssl.h: No such file or directory
SSLeay.xs:36:28: error: openssl/crypto.h: No such file or directory
SSLeay.xs:37:25: error: openssl/err.h: No such file or directory
SSLeay.xs:38:26: error: openssl/rand.h: No such file or directory
SSLeay.xs:39:28: error: openssl/pkcs12.h: No such file or directory
SSLeay.xs:55: warning: type defaults to Б─≤intБ─≥ in declaration of Б─≤SSLБ─≥
SSLeay.xs:55: error: expected Б─≤;Б─≥, Б─≤,Б─≥ or Б─≤)Б─≥ before Б─≤*Б─≥ token
SSLeay.xs: In function Б─≤XS_Crypt__SSLeay__Err_get_error_stringБ─≥:
SSLeay.xs:98: warning: implicit declaration of function Б─≤ERR_get_errorБ─≥
SSLeay.xs:101: warning: implicit declaration of function Б─≤ERR_error_stringБ─≥
SSLeay.c: In function Б─≤XS_Crypt__SSLeay__CTX_newБ─≥:
SSLeay.c:276: error: Б─≤SSL_CTXБ─≥ undeclared (first use in this function)
SSLeay.c:276: error: (Each undeclared identifier is reported only once
SSLeay.c:276: error: for each function it appears in.)
SSLeay.c:276: error: Б─≤RETVALБ─≥ undeclared (first use in this function)
SSLeay.xs:114: error: Б─≤ctxБ─≥ undeclared (first use in this function)
SSLeay.xs:120: warning: implicit declaration of function Б─≤SSLeay_add_all_algorithmsБ─≥
SSLeay.xs:121: warning: implicit declaration of function Б─≤SSL_load_error_stringsБ─≥
SSLeay.xs:122: warning: implicit declaration of function Б─≤ERR_load_crypto_stringsБ─≥
SSLeay.xs:123: warning: implicit declaration of function Б─≤SSL_library_initБ─≥
SSLeay.xs:129: warning: implicit declaration of function Б─≤RAND_load_fileБ─≥
SSLeay.xs:134: warning: implicit declaration of function Б─≤RAND_seedБ─≥
SSLeay.xs:138: warning: implicit declaration of function Б─≤SSL_CTX_newБ─≥
SSLeay.xs:138: warning: implicit declaration of function Б─≤SSLv23_client_methodБ─≥
SSLeay.xs:141: warning: implicit declaration of function Б─≤SSLv3_client_methodБ─≥
SSLeay.xs:146: warning: implicit declaration of function Б─≤SSLv2_client_methodБ─≥
SSLeay.xs:153: warning: implicit declaration of function Б─≤SSL_CTX_set_optionsБ─≥
SSLeay.xs:153: error: Б─≤SSL_OP_ALLБ─≥ undeclared (first use in this function)
SSLeay.xs:154: warning: implicit declaration of function Б─≤SSL_CTX_set_default_verify_pathsБ─≥
SSLeay.xs:155: warning: implicit declaration of function Б─≤SSL_CTX_set_verifyБ─≥
SSLeay.xs:155: error: Б─≤SSL_VERIFY_NONEБ─≥ undeclared (first use in this function)
SSLeay.c:272: warning: unused variable Б─≤packnameБ─≥
SSLeay.c: In function Б─≤XS_Crypt__SSLeay__CTX_freeБ─≥:
SSLeay.c:336: error: Б─≤SSL_CTXБ─≥ undeclared (first use in this function)
SSLeay.c:336: error: Б─≤ctxБ─≥ undeclared (first use in this function)
SSLeay.c:340: error: expected expression before Б─≤)Б─≥ token
SSLeay.c:346: warning: implicit declaration of function Б─≤SSL_CTX_freeБ─≥
SSLeay.c: In function Б─≤XS_Crypt__SSLeay__CTX_set_cipher_listБ─≥:
SSLeay.c:359: error: Б─≤SSL_CTXБ─≥ undeclared (first use in this function)
SSLeay.c:359: error: Б─≤ctxБ─≥ undeclared (first use in this function)
SSLeay.c:367: error: expected expression before Б─≤)Б─≥ token
SSLeay.c:373: warning: implicit declaration of function Б─≤SSL_CTX_set_cipher_listБ─≥
SSLeay.c: In function Б─≤XS_Crypt__SSLeay__CTX_use_certificate_fileБ─≥:
SSLeay.c:387: error: Б─≤SSL_CTXБ─≥ undeclared (first use in this function)
SSLeay.c:387: error: Б─≤ctxБ─≥ undeclared (first use in this function)
SSLeay.c:397: error: expected expression before Б─≤)Б─≥ token
SSLeay.c:403: warning: implicit declaration of function Б─≤SSL_CTX_use_certificate_fileБ─≥
SSLeay.c: In function Б─≤XS_Crypt__SSLeay__CTX_use_PrivateKey_fileБ─≥:
SSLeay.c:417: error: Б─≤SSL_CTXБ─≥ undeclared (first use in this function)
SSLeay.c:417: error: Б─≤ctxБ─≥ undeclared (first use in this function)
SSLeay.c:427: error: expected expression before Б─≤)Б─≥ token
SSLeay.c:433: warning: implicit declaration of function Б─≤SSL_CTX_use_PrivateKey_fileБ─≥
SSLeay.c: In function Б─≤XS_Crypt__SSLeay__CTX_use_pkcs12_fileБ─≥:
SSLeay.c:447: error: Б─≤SSL_CTXБ─≥ undeclared (first use in this function)
SSLeay.c:447: error: Б─≤ctxБ─≥ undeclared (first use in this function)
SSLeay.xs:188: error: Б─≤EVP_PKEYБ─≥ undeclared (first use in this function)
SSLeay.xs:188: error: Б─≤pkeyБ─≥ undeclared (first use in this function)
SSLeay.xs:189: error: Б─≤X509Б─≥ undeclared (first use in this function)
SSLeay.xs:189: error: Б─≤certБ─≥ undeclared (first use in this function)
SSLeay.xs:190: warning: implicit declaration of function Б─≤STACK_OFБ─≥
SSLeay.xs:190: error: Б─≤caБ─≥ undeclared (first use in this function)
SSLeay.xs:191: error: Б─≤PKCS12Б─≥ undeclared (first use in this function)
SSLeay.xs:191: error: Б─≤p12Б─≥ undeclared (first use in this function)
SSLeay.c:464: error: expected expression before Б─≤)Б─≥ token
SSLeay.xs:194: warning: implicit declaration of function Б─≤d2i_PKCS12_fpБ─≥
SSLeay.xs:198: warning: implicit declaration of function Б─≤PKCS12_parseБ─≥
SSLeay.xs:200: warning: implicit declaration of function Б─≤SSL_CTX_use_PrivateKeyБ─≥
SSLeay.xs:201: warning: implicit declaration of function Б─≤EVP_PKEY_freeБ─≥
SSLeay.xs:204: warning: implicit declaration of function Б─≤SSL_CTX_use_certificateБ─≥
SSLeay.xs:205: warning: implicit declaration of function Б─≤X509_freeБ─≥
SSLeay.xs:208: warning: implicit declaration of function Б─≤PKCS12_freeБ─≥
SSLeay.c: In function Б─≤XS_Crypt__SSLeay__CTX_check_private_keyБ─≥:
SSLeay.c:502: error: Б─≤SSL_CTXБ─≥ undeclared (first use in this function)
SSLeay.c:502: error: Б─≤ctxБ─≥ undeclared (first use in this function)
SSLeay.c:508: error: expected expression before Б─≤)Б─≥ token
SSLeay.c:514: warning: implicit declaration of function Б─≤SSL_CTX_check_private_keyБ─≥
SSLeay.c: In function Б─≤XS_Crypt__SSLeay__CTX_set_verifyБ─≥:
SSLeay.c:528: error: Б─≤SSL_CTXБ─≥ undeclared (first use in this function)
SSLeay.c:528: error: Б─≤ctxБ─≥ undeclared (first use in this function)
SSLeay.c:537: error: expected expression before Б─≤)Б─≥ token
SSLeay.xs:230: error: Б─≤SSL_VERIFY_NONEБ─≥ undeclared (first use in this function)
SSLeay.xs:234: warning: implicit declaration of function Б─≤SSL_CTX_load_verify_locationsБ─≥
SSLeay.xs:235: error: Б─≤SSL_VERIFY_PEERБ─≥ undeclared (first use in this function)
SSLeay.c: In function Б─≤XS_Crypt__SSLeay__Conn_newБ─≥:
SSLeay.c:572: error: Б─≤SSL_CTXБ─≥ undeclared (first use in this function)
SSLeay.c:572: error: Б─≤ctxБ─≥ undeclared (first use in this function)
SSLeay.xs:249: error: Б─≤SSLБ─≥ undeclared (first use in this function)
SSLeay.xs:249: error: Б─≤sslБ─≥ undeclared (first use in this function)
SSLeay.c:578: error: Б─≤RETVALБ─≥ undeclared (first use in this function)
SSLeay.c:582: error: expected expression before Б─≤)Б─≥ token
SSLeay.xs:251: warning: implicit declaration of function Б─≤SSL_newБ─≥
SSLeay.xs:252: warning: implicit declaration of function Б─≤SSL_set_connect_stateБ─≥
SSLeay.xs:266: warning: implicit declaration of function Б─≤SSL_set_info_callbackБ─≥
SSLeay.xs:266: error: Б─≤InfoCallbackБ─≥ undeclared (first use in this function)
SSLeay.xs:273: warning: implicit declaration of function Б─≤SSL_set_fdБ─≥
SSLeay.c:570: warning: unused variable Б─≤packnameБ─≥
SSLeay.c: In function Б─≤XS_Crypt__SSLeay__Conn_freeБ─≥:
SSLeay.c:628: error: Б─≤SSLБ─≥ undeclared (first use in this function)
SSLeay.c:628: error: Б─≤sslБ─≥ undeclared (first use in this function)
SSLeay.c:632: error: expected expression before Б─≤)Б─≥ token
SSLeay.c:638: warning: implicit declaration of function Б─≤SSL_freeБ─≥
SSLeay.c: In function Б─≤XS_Crypt__SSLeay__Conn_set_fdБ─≥:
SSLeay.c:651: error: Б─≤SSLБ─≥ undeclared (first use in this function)
SSLeay.c:651: error: Б─≤sslБ─≥ undeclared (first use in this function)
SSLeay.c:659: error: expected expression before Б─≤)Б─≥ token
SSLeay.c: In function Б─≤XS_Crypt__SSLeay__Conn_connectБ─≥:
SSLeay.c:679: error: Б─≤SSLБ─≥ undeclared (first use in this function)
SSLeay.c:679: error: Б─≤sslБ─≥ undeclared (first use in this function)
SSLeay.c:685: error: expected expression before Б─≤)Б─≥ token
SSLeay.c:691: warning: implicit declaration of function Б─≤SSL_connectБ─≥
SSLeay.c: In function Б─≤XS_Crypt__SSLeay__Conn_acceptБ─≥:
SSLeay.c:705: error: Б─≤SSLБ─≥ undeclared (first use in this function)
SSLeay.c:705: error: Б─≤sslБ─≥ undeclared (first use in this function)
SSLeay.c:711: error: expected expression before Б─≤)Б─≥ token
SSLeay.c:717: warning: implicit declaration of function Б─≤SSL_acceptБ─≥
SSLeay.c: In function Б─≤XS_Crypt__SSLeay__Conn_writeБ─≥:
SSLeay.c:731: error: Б─≤SSLБ─≥ undeclared (first use in this function)
SSLeay.c:731: error: Б─≤sslБ─≥ undeclared (first use in this function)
SSLeay.c:743: error: expected expression before Б─≤)Б─≥ token
SSLeay.xs:333: warning: implicit declaration of function Б─≤SSL_writeБ─≥
SSLeay.xs:334: warning: implicit declaration of function Б─≤SSL_get_errorБ─≥
SSLeay.xs:345: error: Б─≤SSL_ERROR_WANT_READБ─≥ undeclared (first use in this function)
SSLeay.xs:346: error: Б─≤SSL_ERROR_WANT_WRITEБ─≥ undeclared (first use in this function)
SSLeay.c: In function Б─≤XS_Crypt__SSLeay__Conn_readБ─≥:
SSLeay.c:811: error: Б─≤SSLБ─≥ undeclared (first use in this function)
SSLeay.c:811: error: Б─≤sslБ─≥ undeclared (first use in this function)
SSLeay.c:825: error: expected expression before Б─≤)Б─≥ token
SSLeay.xs:398: warning: implicit declaration of function Б─≤SSL_readБ─≥
SSLeay.xs:412: error: Б─≤SSL_ERROR_WANT_READБ─≥ undeclared (first use in this function)
SSLeay.xs:413: error: Б─≤SSL_ERROR_WANT_WRITEБ─≥ undeclared (first use in this function)
SSLeay.c: In function Б─≤XS_Crypt__SSLeay__Conn_get_peer_certificateБ─≥:
SSLeay.c:898: error: Б─≤SSLБ─≥ undeclared (first use in this function)
SSLeay.c:898: error: Б─≤sslБ─≥ undeclared (first use in this function)
SSLeay.c:899: error: Б─≤X509Б─≥ undeclared (first use in this function)
SSLeay.c:899: error: Б─≤RETVALБ─≥ undeclared (first use in this function)
SSLeay.c:903: error: expected expression before Б─≤)Б─≥ token
SSLeay.c:909: warning: implicit declaration of function Б─≤SSL_get_peer_certificateБ─≥
SSLeay.c: In function Б─≤XS_Crypt__SSLeay__Conn_get_verify_resultБ─≥:
SSLeay.c:924: error: Б─≤SSLБ─≥ undeclared (first use in this function)
SSLeay.c:924: error: Б─≤sslБ─≥ undeclared (first use in this function)
SSLeay.c:929: error: expected expression before Б─≤)Б─≥ token
SSLeay.xs:432: warning: implicit declaration of function Б─≤SSL_get_verify_resultБ─≥
SSLeay.xs:432: error: Б─≤X509_V_OKБ─≥ undeclared (first use in this function)
SSLeay.c: In function Б─≤XS_Crypt__SSLeay__Conn_get_shared_ciphersБ─≥:
SSLeay.c:951: error: Б─≤SSLБ─≥ undeclared (first use in this function)
SSLeay.c:951: error: Б─≤sslБ─≥ undeclared (first use in this function)
SSLeay.c:960: error: expected expression before Б─≤)Б─≥ token
SSLeay.xs:442: warning: implicit declaration of function Б─≤SSL_get_shared_ciphersБ─≥
SSLeay.c: In function Б─≤XS_Crypt__SSLeay__Conn_get_cipherБ─≥:
SSLeay.c:981: error: Б─≤SSLБ─≥ undeclared (first use in this function)
SSLeay.c:981: error: Б─≤sslБ─≥ undeclared (first use in this function)
SSLeay.c:987: error: expected expression before Б─≤)Б─≥ token
SSLeay.xs:450: warning: implicit declaration of function Б─≤SSL_get_cipherБ─≥
SSLeay.c: In function Б─≤XS_Crypt__SSLeay__X509_freeБ─≥:
SSLeay.c:1037: error: Б─≤X509Б─≥ undeclared (first use in this function)
SSLeay.c:1037: error: Б─≤certБ─≥ undeclared (first use in this function)
SSLeay.c:1041: error: expected expression before Б─≤)Б─≥ token
SSLeay.c: In function Б─≤XS_Crypt__SSLeay__X509_subject_nameБ─≥:
SSLeay.c:1060: error: Б─≤X509Б─≥ undeclared (first use in this function)
SSLeay.c:1060: error: Б─≤certБ─≥ undeclared (first use in this function)
SSLeay.c:1068: error: expected expression before Б─≤)Б─≥ token
SSLeay.xs:475: warning: implicit declaration of function Б─≤X509_NAME_onelineБ─≥
SSLeay.xs:475: warning: implicit declaration of function Б─≤X509_get_subject_nameБ─≥
SSLeay.xs:477: warning: implicit declaration of function Б─≤OPENSSL_freeБ─≥
SSLeay.c: In function Б─≤XS_Crypt__SSLeay__X509_issuer_nameБ─≥:
SSLeay.c:1092: error: Б─≤X509Б─≥ undeclared (first use in this function)
SSLeay.c:1092: error: Б─≤certБ─≥ undeclared (first use in this function)
SSLeay.c:1100: error: expected expression before Б─≤)Б─≥ token
SSLeay.xs:487: warning: implicit declaration of function Б─≤X509_get_issuer_nameБ─≥
SSLeay.c: In function Б─≤XS_Crypt__SSLeay__X509_get_notBeforeStringБ─≥:
SSLeay.c:1124: error: Б─≤X509Б─≥ undeclared (first use in this function)
SSLeay.c:1124: error: Б─≤certБ─≥ undeclared (first use in this function)
SSLeay.c:1130: error: expected expression before Б─≤)Б─≥ token
SSLeay.xs:497: warning: implicit declaration of function Б─≤X509_get_notBeforeБ─≥
SSLeay.c: In function Б─≤XS_Crypt__SSLeay__X509_get_notAfterStringБ─≥:
SSLeay.c:1151: error: Б─≤X509Б─≥ undeclared (first use in this function)
SSLeay.c:1151: error: Б─≤certБ─≥ undeclared (first use in this function)
SSLeay.c:1157: error: expected expression before Б─≤)Б─≥ token
SSLeay.xs:505: warning: implicit declaration of function Б─≤X509_get_notAfterБ─≥
make: *** [SSLeay.o] Error 1
NANIS/Crypt-SSLeay-0.64.tar.gz
make -- NOT OK
CPAN: YAML loaded ok (v0.84)
Running make test
Can't test without successful make
Running make install
Make had returned bad status, install seems impossible
Failed during this command:
NANIS/Crypt-SSLeay-0.64.tar.gz : make NO


I've also googled a lot, but still I'm stuck. Please, help!

Answer
sudo yum install perl-Crypt-SSLeay