GD does not recompile with Apache when selected

nsusa

Well-Known Member
Jun 30, 2004
92
1
158
Colorado, USA
I recompiled Apache earlier this week. I selected the previous configuration and started the build process. GD was installed before, but is not making it into the new build for whatever reason. It does not show up on phpinfo either. However - when I am in WHM and go to update Apache and select previous configuration it is selected.

When I query for the RPM I get this:

[~]# rpm --query --list gd
/usr/lib/libgd.so.1
/usr/lib/libgd.so.1.8
/usr/lib/libgd.so.1.8.4
/usr/share/doc/gd-1.8.4
/usr/share/doc/gd-1.8.4/index.html
/usr/share/doc/gd-1.8.4/readme.txt

The server in question is running this configuration:

WHM 10.8.0 cPanel 10.8.1-R113
RedHat Enterprise 3 i686 - WHM X v3.1.0
Any idea what might be wrong in this case?

Thanks.

Chris
 

nsusa

Well-Known Member
Jun 30, 2004
92
1
158
Colorado, USA
Thanks, Nick. I am not such a experienced Linux admin. Do you know the uninstall command I would have to use in this case?

Chris
 

nsusa

Well-Known Member
Jun 30, 2004
92
1
158
Colorado, USA
Tried to remove it, but that does fail:

[~]# rpm -e gd-1.8.4-12.3.1
error: Failed dependencies:
libgd.so.1.8 is needed by (installed) glibc-utils-2.3.2-95.44
gd = 1.8.4 is needed by (installed) gd-devel-1.8.4-12.3.1
gd = 1.8.4 is needed by (installed) gd-progs-1.8.4-12.3.1
Chris
 

nsusa

Well-Known Member
Jun 30, 2004
92
1
158
Colorado, USA
Alright. Maybe this helps anyone else having the same problem. Here is how I got it fixed:

1) Run /scripts/upcp --force
2) Run /scripts/easyapache
Select 7th option
Select 'PHP Module ---->' and hit enter.
Select GD using space bar. In my case it was already selected and I just exited out.
Select 'Exit', again select 'Exit' and then say 'Yes' to save.
Let the script execute completely and you will find GD is installed on your machine.

Chris