Pages

Tuesday, June 26, 2012

Problem installing GD

perl -MCPAN -e 'install GD' fails with error

This issue is resolved and here's the summary of what I found in order to resolve the issue in hopes it helps other users.

gdlib-config is a script file that has been included in the open source distribution of the gd library since version 2.0.26. we have the Red Hat gd library version 2.0.28 installed as an rpm however this distribution (RHEL AS 4) does not include gdlib-config! contacted Red Hat support about this and they confirmed that gdlib-config is not part of their official 2.0.28 distribution and they only began includin the script as part of RHEL AS 5. So to resolve this, we downloaded the open source gd library from the following link: http://www.boutell.com/gd/manual2.0.28.html#getgd decompressed/untarred the file, and then ran ./configure from the gd-2.0.28 directory. once the command had completed we copied the newly created gdlib-config file from the gd-2.0.28/config directory to the /usr/bin directory and made the file executable by running 'chmod 774 gdlib-config'. after that every one of the perl GD modules installed without error.

No comments:

Post a Comment