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

Can't install GD on Ubuntu

by Anonymous Monk
on Oct 28, 2010 at 13:31 UTC ( #868016=perlquestion: print w/replies, xml ) Need Help??
Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

Dear Monks

I am trying to install the GD module using CPAN to a local perl installation on Ubuntu. It doesn't work and I get this error message:

**UNRECOVERABLE ERROR** Could not find gdlib-config in the search path. Please install libgd 2 +.0.28 or higher.
Please could you advise where I go from here?

Many thanks in advance

Replies are listed 'Best First'.
Re: Can't install GD on Ubuntu
by zentara (Archbishop) on Oct 28, 2010 at 13:39 UTC
    On Ubuntu, you may be better off installing with the Synaptics Package Manager. Start Synaptics, and search for "Perl GD". Select to install the perl module, and it will ask if you want the dependencies too.... say yes.

    If you want to use CPAN or a manual install, you need to install the libgd2 first. Manually from libgd homepage . Or with Ubuntu , you need the devel package

    #untested sudo apt-get install libgd2 sudo apt-get install libgd2-dev

    I'm not really a human, but I play one on earth.
    Old Perl Programmer Haiku ................... flash japh

      try this:

      sudo apt-get -y install libgd2-xpm-dev build-essentialsudo apt-get -y install libgd2-xpm-dev build-essential
Re: Can't install GD on Ubuntu
by marto (Bishop) on Oct 28, 2010 at 13:41 UTC

    You need the prerequisites mentioned in the README file.

Re: Can't install GD on Ubuntu
by Anonymous Monk on Oct 28, 2010 at 13:40 UTC
    Please could you advise where I go from here?

    You go and install libgd 2 such that it comes with gdlib-config program, and you can find it using which gdlib-config

    On ubuntu that might involve something called apt

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (4)
As of 2018-03-23 18:58 GMT
Find Nodes?
    Voting Booth?
    When I think of a mole I think of:

    Results (296 votes). Check out past polls.