http://www.perlmonks.org?node_id=969819

perllearner007 has asked for the wisdom of the Perl Monks concerning the following question:

Hi Monks, I need to install GD::Graph which requires two dependencies GD and GD::Text and String::Approx I understand GD.pm is Interface to Gd Graphics Library but how can I install it? install GD.pm gives me an error
install GD.pm + Warning: Cannot install GD.pm, don't know what it is. Try the command perl -MCPAN -e 'install "GD"'. + Unknown shell command 'perl'. Type ? for help. install GD + Running install for module 'GD' Running make for L/LD/LDS/GD-2.46.tar.gz Catching error: 'mkdir /Users/xyz/.cpan/sources/authors/id/L/LD: Permi +ssion denied at /System/Library/Perl/5.10.0/CPAN.pm line 4117 ' at /System/Library/Perl/5.10.0/CPAN.pm line 281 CPAN::shell() called at -e line 1
I don't know what is going wrong one reason being I am not sure what the person had done who was working on this mac before. Whether cpan was configured properly or not.