Can’t locate IO/Socket/ in @INC in Centos

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

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

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

yum install perl-IO-Socket-SSL

This has helped me I hope you too.

1 thought on “Can’t locate IO/Socket/ in @INC in Centos”

  1. Thank you, fixed the error but my script does not work, I got it from Kali Linux and it does not work in a PuTTY.

Leave a Comment

Your email address will not be published. Required fields are marked *