When I run:
cpan Crypt::SSLeay
I get the next output:
make: *** [Makefile:887: test_dynamic] Error 2
OALDERS/LWP-Protocol-https-6.14.tar.gz
2 dependencies missing (IO::Socket::SSL,IO::Socket::SSL::Utils); additionally test harness failed
/usr/bin/make test -- NOT OK
//hint// to see the cpan-testers results for installing this module, try:
reports OALDERS/LWP-Protocol-https-6.14.tar.gz
NANIS/Crypt-SSLeay-0.72.tar.gz
Has already been unwrapped into directory /home/archy/.cpan/build/Crypt-SSLeay-0.72-4
NANIS/Crypt-SSLeay-0.72.tar.gz
Has already been prepared
Running make for N/NA/NANIS/Crypt-SSLeay-0.72.tar.gz
Warning: Prerequisite 'LWP::Protocol::https => 6.02' for 'NANIS/Crypt-SSLeay-0.72.tar.gz' failed when processing 'OALDERS/LWP-Protocol-https-6.14.tar.gz' with 'make_test => NO 2 dependencies missing (IO::Socket::SSL,IO::Socket::SSL::Utils); additionally test harness failed'. Continuing, but chances to succeed are limited.
cp lib/Crypt/SSLeay/MainContext.pm blib/lib/Crypt/SSLeay/MainContext.pm
cp lib/Crypt/SSLeay/X509.pm blib/lib/Crypt/SSLeay/X509.pm
cp lib/Crypt/SSLeay/Err.pm blib/lib/Crypt/SSLeay/Err.pm
cp lib/Crypt/SSLeay/Conn.pm blib/lib/Crypt/SSLeay/Conn.pm
cp lib/Crypt/SSLeay/Version.pm blib/lib/Crypt/SSLeay/Version.pm
cp lib/Net/SSL.pm blib/lib/Net/SSL.pm
cp SSLeay.pm blib/lib/Crypt/SSLeay.pm
cp lib/Crypt/SSLeay/CTX.pm blib/lib/Crypt/SSLeay/CTX.pm
Running Mkbootstrap for SSLeay ()
chmod 644 "SSLeay.bs"
"/usr/bin/perl" -MExtUtils::Command::MM -e 'cp_nonempty' -- SSLeay.bs blib/arch/auto/Crypt/SSLeay/SSLeay.bs 644
"/usr/bin/perl" "/usr/share/perl5/core_perl/ExtUtils/xsubpp" -typemap '/usr/share/perl5/core_perl/ExtUtils/typemap' -typemap '/home/archy/.cpan/build/Crypt-SSLeay-0.72-4/typemap' SSLeay.xs > SSLeay.xsc
mv SSLeay.xsc SSLeay.c
cc -c -D_REENTRANT -D_GNU_SOURCE -fwrapv -fno-strict-aliasing -pipe -fstack-protector-strong -I/usr/include/db5.3 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -g -ffile-prefix-map=/build/perl/src=/usr/src/debug/perl -flto=auto -DVERSION=\"0.72\" -DXS_VERSION=\"0.72\" -fPIC "-I/usr/lib/perl5/5.40/core_perl/CORE" SSLeay.c
SSLeay.xs: In function ‘XS_Crypt__SSLeay__CTX_new’:
SSLeay.xs:152:31: error: implicit declaration of function ‘SSLv3_client_method’; did you mean ‘SSLv23_client_method’? [-Wimplicit-function-declaration]
152 | ctx = SSL_CTX_new(SSLv3_client_method());
| ^~~~~~~~~~~~~~~~~~~
| SSLv23_client_method
SSLeay.xs:152:31: error: passing argument 1 of ‘SSL_CTX_new’ makes pointer from integer without a cast [-Wint-conversion]
152 | ctx = SSL_CTX_new(SSLv3_client_method());
| ^~~~~~~~~~~~~~~~~~~~~
| |
| int
In file included from SSLeay.xs:35:
/usr/include/openssl/ssl.h:1606:47: note: expected ‘const SSL_METHOD *’ {aka ‘const struct ssl_method_st *’} but argument is of type ‘int’
1606 | __owur SSL_CTX *SSL_CTX_new(const SSL_METHOD *meth);
| ~~~~~~~~~~~~~~~~~~^~~~
SSLeay.xs:157:31: error: implicit declaration of function ‘SSLv2_client_method’; did you mean ‘SSLv23_client_method’? [-Wimplicit-function-declaration]
157 | ctx = SSL_CTX_new(SSLv2_client_method());
| ^~~~~~~~~~~~~~~~~~~
| SSLv23_client_method
SSLeay.xs:157:31: error: passing argument 1 of ‘SSL_CTX_new’ makes pointer from integer without a cast [-Wint-conversion]
157 | ctx = SSL_CTX_new(SSLv2_client_method());
| ^~~~~~~~~~~~~~~~~~~~~
| |
| int
/usr/include/openssl/ssl.h:1606:47: note: expected ‘const SSL_METHOD *’ {aka ‘const struct ssl_method_st *’} but argument is of type ‘int’
1606 | __owur SSL_CTX *SSL_CTX_new(const SSL_METHOD *meth);
| ~~~~~~~~~~~~~~~~~~^~~~
make: *** [Makefile:354: SSLeay.o] Error 1
NANIS/Crypt-SSLeay-0.72.tar.gz
/usr/bin/make -- NOT OK
The output to the terminal is too long, so i just put the important part
I need to install this module in order to run nikto with SSL. According to nikto docs i could either install Net::SSL or Net::SSLeay.
When i try to install Net::SSL i get as well the error above, but when doing so with Net::SSLeay everything sees fine in the output.
But running r in the cpan shell does not show any module seemed to Net::SSLeay
Too i tried to run it with sudo but it says :
sudo: cpan: command not found
This is because i have perl or cpan (i dont know) installed locally
What can i do ?
Perl: perl 5, version 40, subversion 0 (v5.40.0) built for x86_64-linux-thread-multi
OS: Arch Linux x64
When I run:
cpan Crypt::SSLeay
I get the next output:
make: *** [Makefile:887: test_dynamic] Error 2
OALDERS/LWP-Protocol-https-6.14.tar.gz
2 dependencies missing (IO::Socket::SSL,IO::Socket::SSL::Utils); additionally test harness failed
/usr/bin/make test -- NOT OK
//hint// to see the cpan-testers results for installing this module, try:
reports OALDERS/LWP-Protocol-https-6.14.tar.gz
NANIS/Crypt-SSLeay-0.72.tar.gz
Has already been unwrapped into directory /home/archy/.cpan/build/Crypt-SSLeay-0.72-4
NANIS/Crypt-SSLeay-0.72.tar.gz
Has already been prepared
Running make for N/NA/NANIS/Crypt-SSLeay-0.72.tar.gz
Warning: Prerequisite 'LWP::Protocol::https => 6.02' for 'NANIS/Crypt-SSLeay-0.72.tar.gz' failed when processing 'OALDERS/LWP-Protocol-https-6.14.tar.gz' with 'make_test => NO 2 dependencies missing (IO::Socket::SSL,IO::Socket::SSL::Utils); additionally test harness failed'. Continuing, but chances to succeed are limited.
cp lib/Crypt/SSLeay/MainContext.pm blib/lib/Crypt/SSLeay/MainContext.pm
cp lib/Crypt/SSLeay/X509.pm blib/lib/Crypt/SSLeay/X509.pm
cp lib/Crypt/SSLeay/Err.pm blib/lib/Crypt/SSLeay/Err.pm
cp lib/Crypt/SSLeay/Conn.pm blib/lib/Crypt/SSLeay/Conn.pm
cp lib/Crypt/SSLeay/Version.pm blib/lib/Crypt/SSLeay/Version.pm
cp lib/Net/SSL.pm blib/lib/Net/SSL.pm
cp SSLeay.pm blib/lib/Crypt/SSLeay.pm
cp lib/Crypt/SSLeay/CTX.pm blib/lib/Crypt/SSLeay/CTX.pm
Running Mkbootstrap for SSLeay ()
chmod 644 "SSLeay.bs"
"/usr/bin/perl" -MExtUtils::Command::MM -e 'cp_nonempty' -- SSLeay.bs blib/arch/auto/Crypt/SSLeay/SSLeay.bs 644
"/usr/bin/perl" "/usr/share/perl5/core_perl/ExtUtils/xsubpp" -typemap '/usr/share/perl5/core_perl/ExtUtils/typemap' -typemap '/home/archy/.cpan/build/Crypt-SSLeay-0.72-4/typemap' SSLeay.xs > SSLeay.xsc
mv SSLeay.xsc SSLeay.c
cc -c -D_REENTRANT -D_GNU_SOURCE -fwrapv -fno-strict-aliasing -pipe -fstack-protector-strong -I/usr/include/db5.3 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -g -ffile-prefix-map=/build/perl/src=/usr/src/debug/perl -flto=auto -DVERSION=\"0.72\" -DXS_VERSION=\"0.72\" -fPIC "-I/usr/lib/perl5/5.40/core_perl/CORE" SSLeay.c
SSLeay.xs: In function ‘XS_Crypt__SSLeay__CTX_new’:
SSLeay.xs:152:31: error: implicit declaration of function ‘SSLv3_client_method’; did you mean ‘SSLv23_client_method’? [-Wimplicit-function-declaration]
152 | ctx = SSL_CTX_new(SSLv3_client_method());
| ^~~~~~~~~~~~~~~~~~~
| SSLv23_client_method
SSLeay.xs:152:31: error: passing argument 1 of ‘SSL_CTX_new’ makes pointer from integer without a cast [-Wint-conversion]
152 | ctx = SSL_CTX_new(SSLv3_client_method());
| ^~~~~~~~~~~~~~~~~~~~~
| |
| int
In file included from SSLeay.xs:35:
/usr/include/openssl/ssl.h:1606:47: note: expected ‘const SSL_METHOD *’ {aka ‘const struct ssl_method_st *’} but argument is of type ‘int’
1606 | __owur SSL_CTX *SSL_CTX_new(const SSL_METHOD *meth);
| ~~~~~~~~~~~~~~~~~~^~~~
SSLeay.xs:157:31: error: implicit declaration of function ‘SSLv2_client_method’; did you mean ‘SSLv23_client_method’? [-Wimplicit-function-declaration]
157 | ctx = SSL_CTX_new(SSLv2_client_method());
| ^~~~~~~~~~~~~~~~~~~
| SSLv23_client_method
SSLeay.xs:157:31: error: passing argument 1 of ‘SSL_CTX_new’ makes pointer from integer without a cast [-Wint-conversion]
157 | ctx = SSL_CTX_new(SSLv2_client_method());
| ^~~~~~~~~~~~~~~~~~~~~
| |
| int
/usr/include/openssl/ssl.h:1606:47: note: expected ‘const SSL_METHOD *’ {aka ‘const struct ssl_method_st *’} but argument is of type ‘int’
1606 | __owur SSL_CTX *SSL_CTX_new(const SSL_METHOD *meth);
| ~~~~~~~~~~~~~~~~~~^~~~
make: *** [Makefile:354: SSLeay.o] Error 1
NANIS/Crypt-SSLeay-0.72.tar.gz
/usr/bin/make -- NOT OK
The output to the terminal is too long, so i just put the important part
I need to install this module in order to run nikto with SSL. According to nikto docs i could either install Net::SSL or Net::SSLeay.
When i try to install Net::SSL i get as well the error above, but when doing so with Net::SSLeay everything sees fine in the output.
But running r in the cpan shell does not show any module seemed to Net::SSLeay
Too i tried to run it with sudo but it says :
sudo: cpan: command not found
This is because i have perl or cpan (i dont know) installed locally
What can i do ?
Perl: perl 5, version 40, subversion 0 (v5.40.0) built for x86_64-linux-thread-multi
OS: Arch Linux x64
Share Improve this question edited Jan 21 at 6:59 brian d foy 133k31 gold badges212 silver badges604 bronze badges asked Jan 20 at 18:36 rustymanitorustymanito 114 bronze badges 2 |1 Answer
Reset to default 1I already fixed it.
After having installed cpanm
was capable of installing Net::SSLeay
cpanm --notest Net::SSLeay
install
command tocpan
. It's justcpan Crypt::SSLeay
. I've fixed that for you in the question. – brian d foy Commented Jan 21 at 7:01