I tried using SOAP::Lite with Perl recently and kept getting the following error on my server when trying to execute my Perl script:
firstname.lastname@example.org:~/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!