title: Error: Can't locate File/HomeDir.pm in @INC
body: <p>I use a Mac OS X 10.8, and want to run the <code>latexindent.pl</code> <code>perl</code> script on my latex files. This script is made by <a href="https://github.com/cmhughes/latexindent.plx">https://github.com/cmhughes/latexindent.plx</a>. When I run this script on a <code>latexfile</code> I get this error message:</p>
  
  <pre><code>Can't locate File/HomeDir.pm in @INC (@INC contains: /Library/Perl/5.12/darwin-thread-multi-2level /Library/Perl/5.12 /Network/Library/Perl/5.12/darwin-thread-multi-2level /Network/Library/Perl/5.12 /Library/Perl/Updates/5.12.4/darwin-thread-multi-2level /Library/Perl/Updates/5.12.4 /System/Library/Perl/5.12/darwin-thread-multi-2level /System/Library/Perl/5.12 /System/Library/Perl/Extras/5.12/darwin-thread-multi-2level /System/Library/Perl/Extras/5.12 .) at helloworld.pl line 10.
  BEGIN failed--compilation aborted at helloworld.pl line 10.
  </code></pre>
  
  <p>It seems that I am missing the File::HomeDir module in perl so I tried to download it using:</p>
  
  <p><code>sudo perl -MCPAN -e 'install File::HomeDir</code>',</p>
  
  <p>I get the following error:</p>
  
  <p>Can't locate object method "install" via package "File::HomeDir".</p>
  
  <p>I managed to install the <code>YAML::Tiny</code> package without any problems.</p>
  
  <p>I tried to run:</p>
  
  <pre><code>1 #!/usr/bin/perl
  2 
  3 use strict;
  4 use warnings;
  5 use FindBin;
  6 use YAML::Tiny;
  7 use File::Copy;
  8 use File::Basename;
  9 use Getopt::Std;
  10 use File::HomeDir;
  11 
  12 print "hello world";
  13 exit;         
  </code></pre>
  
  <p>and got the same Error message as above...</p>
  
  <p>Do anyone know what to do?</p>