Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

cpan install gd.pm ques

by perllearner007 (Acolyte)
on May 10, 2012 at 14:40 UTC ( #969819=perlquestion: print w/ replies, xml ) Need Help??
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.

Comment on cpan install gd.pm ques
Download Code
Re: cpan install gd.pm ques
by Corion (Pope) on May 10, 2012 at 14:50 UTC
    mkdir /Users/xyz/.cpan/sources/authors/id/L/LD: Permission denied

    This means that you don't have the appropriate permissions to create the directory named above. Consult with your system administrator for how to solve this problem.

    Do note that it is quite inadvisable to install modules into the system-supplied Perl, because the system perl belongs to the OS vendor, and they will change and install modules that they need to keep the OS working. Breaking a module in the system Perl can disrupt important system utilities that rely on particular versions of modules and Perl being available.

    Consider using local::lib and/or perlbrew to maintain a separate installation.

Re: cpan install gd.pm ques
by Anonymous Monk on May 10, 2012 at 14:54 UTC
    CPAN was not correctly configured yet, see section Config Variables in CPAN. Modify make_install_make_command and mbuild_install_build_command to include sudo.

    I see you are on OS X. I urge you to leave the system Perl installation alone and install your own extra Perl with perlbrew (http://perlbrew.pl). The result is self-contained in your home directory, you do not need any root permission.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://969819]
Approved by marto
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (13)
As of 2014-10-30 19:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (208 votes), past polls