GD perl module installation problem in Webmin

11 posts / 0 new
Last post
#1 Sat, 01/24/2009 - 16:03
rulez22

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.

UNRECOVERABLE ERROR 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

Sat, 01/24/2009 - 16:07
Joe
Joe's picture

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.

--

Check out the forum guidelines!

Sat, 01/24/2009 - 16:10 (Reply to #2)
rulez22

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.

Sat, 01/24/2009 - 16:52 (Reply to #3)
Joe
Joe's picture

<div class='quote'>Thanks Joe, but will it be a perl module if I do it via yum?</div>

Of course. You're installing a package named &quot;perl-GD&quot;. Obviously that's the Perl module! ;-)

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.

--

Check out the forum guidelines!

Mon, 01/26/2009 - 15:59 (Reply to #4)
rulez22

that is very strange, I've got Centos 5.2
After I've done &quot;yum list all &gt;&gt;list.txt&quot;
There is no &quot;perl-GD&quot; module in the list, also &quot;yum install perl-GD&quot; doesn't recognize that module.
Does it exist at all?

Mon, 01/26/2009 - 17:19 (Reply to #5)
andreychek

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

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.
-Eric

Fri, 01/30/2009 - 07:20 (Reply to #6)
sgrayban

Probably the VM bleeding edge Repo ?

Fri, 01/30/2009 - 07:23 (Reply to #7)
sgrayban

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

http://dag.wieers.com/rpm/packages/perl-GD/

Sun, 09/18/2011 - 09:39
kencl

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 :)

Thu, 01/31/2013 - 00:53
dushyantmdave

Thanks a lot This article is very useful for me.

Thu, 07/04/2013 - 02:23
shreya

Thanks a lot.... It works :)

Topic locked