English English French French Spanish Spanish German German
Geekflare is supported by our audience. We may earn affiliate commissions from buying links on this site.
Share on:

Can’t locate IO/Socket/SSL.pm in @INC in Centos

centos
Invicti Web Application Security Scanner – the only solution that delivers automatic verification of vulnerabilities with Proof-Based Scanning™.

I was working on Slowloris and while execution got a following error.

[chandan@localhost Downloads]$ ./slowloris.pl localhost
Can't locate IO/Socket/SSL.pm in @INC (
@INC contains: /usr/local/lib64/perl5 
/usr/local/share/perl5 
/usr/lib64/perl5/vendor_perl 
/usr/share/perl5/vendor_perl 
/usr/lib64/perl5 /usr/share/perl5 .) at ./slowloris.pl line 4.
BEGIN failed--compilation aborted at ./slowloris.pl line 4.
[chandan@localhost Downloads]$

If you are getting a similar error, you can fix it by installing Perl-IO-Socket-SSL in RHEL or CentOS operating system.

yum install perl-IO-Socket-SSL

If on CentOS 8 then you can use the following DNF command.

dnf install perl-IO-Socket-SSL

This has helped me I hope you too.

Thanks to our Sponsors
More great readings on Linux
Power Your Business
Some of the tools and services to help your business grow.
  • Invicti uses the Proof-Based Scanning™ to automatically verify the identified vulnerabilities and generate actionable results within just hours.
    Try Invicti
  • Web scraping, residential proxy, proxy manager, web unlocker, search engine crawler, and all you need to collect web data.
    Try Brightdata
  • Semrush is an all-in-one digital marketing solution with more than 50 tools in SEO, social media, and content marketing.
    Try Semrush
  • Intruder is an online vulnerability scanner that finds cyber security weaknesses in your infrastructure, to avoid costly data breaches.
    Try Intruder