perl GD模块安装报错的解决方法

    用源代码方式安装perl的GD库时,输入perl Makefile.PL 命令报如下错误:

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.

 


    安装gd-devel的rpm包即可解决:

    #yum install gd-devel

 

 

PS:

    也可以通过安装gd源代码包获得gdlib-config这个程序来解决。

    参考文章:http://carywu.blog.51cto.com/13185/156197

 

    摘录解决方法如下:

 

//*************解决GD安装错误方法**************

我的系统是RHEL AS4的版本哦,后来RED HAT官方说是因为RHEL AS4中不带glib-config命令的,只有RHEL AS5带了这个命令,我们需要做的就是重新下载gd源包,编译生成glib-config文件然后拷贝到/usr/bin下即可。
下载URL:http://www.boutell.com/gd/manual2.0.28.html#getgd
编译:./configure --prefix=/usr/local/gd && make make install
编译完成后生成目录里,拷贝/bin/glib-config到/usr/bin下。可以删除/usr/local/gd文件夹。
再重新安装GD,顺利通过。

你可能感兴趣的:(perl,url,search)