Perl – Can’t locate XML/Simple.pm in @INC

Recently while I am trying to reuse a perl scrip I got an error saying “Can’t locate XML/Simple.pm in @INC”.

Following is complete error message:

Can’t locate XML/Simple.pm in @INC (@INC contains: /etc/perl /usr/local/lib/perl/5.14.2 /usr/local/share/perl/5.14.2 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.14 /usr/share/perl/5.14 /usr/local/lib/site_perl .)

After debugging for a while I got to know is XML/Simple.pm module is available in “libxml-simple-perl”, I installed libxml-simple-perl module and re-executed script, the script worked without any issue.

Use following command to install libxml-simple-perl module:

$ sudo apt-get install libxml-simple-perl

One comment on “Perl – Can’t locate XML/Simple.pm in @INC

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s