GD perl module installation problem in Webmin

Trying to install GD as a perl module in Webmin and there is a problem.
Here is the message:

Compiling module
Executing /usr/bin/perl Makefile.PL && make …

Notice: Type perl Makefile.PL -h for command-line option summary.

Could not find gdlib-config in the search path. Please install libgd 2.0.28 or higher.
If you want to try to compile anyway, please rerun this script with the option --ignore_missing_gd.

Installation of GD failed. Check the output above and try installing manually.
You can also install the module from CPAN with the command perl -MCPAN -e shell.

Is it fixable?
Cheers!<br><br>Post edited by: rulez22, at: 2009/01/24 16:04

Don’t do it that way. Install it using yum or apt-get. That way it will be a version that is compatible with your Perl and libgd version. The GD module is definitely available in OS standard packages, so don’t make your life harder than it needs to be.

Thanks Joe, but will it be a perl module if I do it via yum?
I already have GD already installed as a package but not as a Perl module.

Thanks Joe, but will it be a perl module if I do it via yum?

Of course. You’re installing a package named “perl-GD”. Obviously that’s the Perl module! :wink:

I think perhaps you’re still a little fuzzy on what yum is for. yum just installs packages–it doesn’t discriminate about what kind of package, and if a package you need is available via yum, you should pretty much always use yum to install it. The Webmin Perl Modules module should be viewed as a last resort. Sometimes you’ll need to use it for modules that aren’t very popular, or if you need a very new version, but if you’re in that situation, you probably know enough about it to be able to install it the harder way.

that is very strange, I’ve got Centos 5.2
After I’ve done “yum list all >>list.txt”
There is no “perl-GD” module in the list, also “yum install perl-GD” doesn’t recognize that module.
Does it exist at all?

I have a hunch that Joe has one of the naughty third party RPM repo’s enabled that he normally recommends against :slight_smile:

So far as I can tell, perl-GD isn’t available in the standard CentOS 5 RPM repository.

While I could be overlooking something, I suspect you may need to troubleshoot why your module install from CPAN didn’t work.

It looks like the error you’re getting is because the base GD library isn’t installed. You may just need to install that, before doing the Perl module install that you had initially attempted. You can do that with this:

yum install gd gd-devel

Then attempt the Perl GD module installation you had attempted. Feel free to hold off for just a moment to give Joe a chance to chime in – I’d hate to lead you astray. But like yourself, I don’t see a perl-GD library in the CentOS repo.

Probably the VM bleeding edge Repo ?

Of course he could just down the that one package from DAG and install it…

I solved this exact problem today (18 Sept 2011)

In my case, gd 2.0.33 was installed, but gd-devel was not. Installing that was easy and allowed the perl GD module to install easily.

yum install gd-devel.x86_64

note the need to specify the 64 bit version to prevent installation of 32 bit dependency packages. Despite that precaution, libpng for i386 was updated. I’m not sure if that matters though as everything is now working as desired.

Sorry if the bump offends some of you, but perhaps 2 more years down the road someone else will find this answer helpful as I would have when I came looking a few hours ago :slight_smile:

Thanks a lot This article is very useful for me.

Thanks a lot… It works :slight_smile: