Can’t locate Class/Inspector.pm in @INC (Ubuntu)

Print Friendly, PDF & Email

Hi,

I tried using SOAP::Lite with Perl recently and kept getting the following error on my server when trying to execute my Perl script:

techedemic@techedemic.com:~/dev/scripts$ ./soap.pl
Can't locate Class/Inspector.pm in @INC (@INC contains: /etc/perl /usr/local/lib/perl/5.10.1 /usr/local/share/perl/ hare/perl/5.10.1/SOAP/Lite.pm line 435.
BEGIN failed--compilation aborted at /usr/local/share/perl/5.10.1/SOAP/Lite.pm line 435.
Compilation failed in require at ./soap.pl line 3.
BEGIN failed--compilation aborted at ./soap.pl line 3.

The solution was quite simple, although finding it on the internet was not as simple.

Just do the following to install the required class:

sudo apt-get install libclass-inspector-perl

Voila, it’s working as expected.

If you are using RHEL or CentOS, you could do the following (I did not test this but found it at this link :

yum install 'perl(Class::Inspector)'

Hope this helps someone out there!

Cheers

4 comments

  1. Thank you very much, it helped me! i was getting this error in windows active perl and i found here what i needed to install. Thanks!

Leave a Reply

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.