Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?

cpan install 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 is Interface to Gd Graphics Library but how can I install it? install gives me an error
install + Warning: Cannot install, 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/ line 4117 ' at /System/Library/Perl/5.10.0/ 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.

Replies are listed 'Best First'.
Re: cpan install 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 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 ( The result is self-contained in your home directory, you do not need any root permission.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://969819]
Approved by marto
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (6)
As of 2018-06-20 10:42 GMT
Find Nodes?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?

    Results (116 votes). Check out past polls.