My mac machine is quite old (Mac OS X 10.6.8) and I have a question on how to upgrade a perl module File::Path.I mostly compile my LaTeX document using latexmk which is basically a perl script. It requires File::Path version 2.08 but I got an outdated one (version 2.07_02) in my machine. This is the error message I got while running the latexmk command.>> latexmk doc.texFile::Path version 2.08 required--this is only version 2.07_02 at /usr/texbin/latexmk line 129.When I ran cpan as a non-root user and tried to upgrade this package by running the command upgrade File::Path, I got this message on the screen.!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!ERROR: Can't create '/Library/Perl/Updates/5.10.0/File'mkdir /Library/Perl/Updates/5.10.0/File: Permission denied at   /System/Library/Perl/5.10.0/ExtUtils/Install.pm line 479   !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! at -e line 1make: *** [pure_perl_install] Error 13  DLAND/File-Path-2.09.tar.gz  /usr/bin/make install  -- NOT OKWarning (usually harmless): 'YAML' not installed, will not store persistent stateFailed during this command: DLAND/File-Path-2.09.tar.gz                  : install NOIs it possible to upgrade a perl module as a non-root user using cpan in Mac OS X?
How to upgrade File::Path on my Mac OS X as a non-root user
osx;perl;cpan