Sign up ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I was going to run a perl program and then I got this error message:

Can't locate in @INC (@INC contains: /etc/perl /usr/local/lib/perl/5.10.1 /usr/local/share/perl/5.10.1 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.10 /usr/share/perl/5.10 /usr/local/lib/site_perl .) at ./po2json line 23.
BEGIN failed--compilation aborted at ./po2json line 23.

I supposse there is some JSON module that needs to get installed perhaps via cpan. Do you have a suggestion for how to enable it?



So I could install the JSON module but now I get another error message

Can't locate Locale/ in @INC (@INC contains: /etc/perl /usr/local/lib/perl/5.10.1 /usr/local/share/perl/5.10.1 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.10 /usr/share/perl/5.10 /usr/local/lib/site_perl .) at ./po2json line 24.
BEGIN failed--compilation aborted at ./po2json line 24.
share|improve this question

2 Answers 2

up vote 3 down vote accepted

On Ubuntu 10.04 this file can be found in the liblocale-po-perl package:

$ apt-file search Locale/
liblocale-po-perl: /usr/share/perl5/Locale/

Another way to have worked this out:

$ apt-cache search Locale::PO
liblocale-po-perl - Locale::PO perl module

which you may prefer since apt-file is not installed by default.

share|improve this answer
+1 for apt-file search – apis17 Mar 15 '13 at 23:25

For on ubuntu system, you should install libjson-perl package:

apt-get install libjson-perl

You can find which ubuntu package holds your file thanks to:

apt-file search
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.