无法在centos 5.8上安装GD [英] Cannot install GD on centos 5.8

查看:212
本文介绍了无法在centos 5.8上安装GD的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

搜索-lgd时$

  / usr / bin / ld:skipping不兼容/usr/libgd.so / usr / bin / ld:skipping incompatible / usr / lib / libgd.a当搜索-lgd 
/ usr / bin / ld:找不到-lgd
collect2:ld返回1退出状态
make:*** [blib / arch / auto / GD / GD.so]错误1
/ usr / bin / make - 不正确
运行make测试
无法测试没有成功make
运行make install
make已返回不良状态,安装似乎不可能

我试图安装GD.pm在centos 5.8和卡住这个问题。我已经安装所有可用的图形库与yum。
有任何想法?

解决方案

GD模块只是libgd的一个薄层。

  $ sudo yum install gd 



您可能还需要开发库(对于C头文件)。

  $ sudo yum install gd-devel 

,你可能最好只是安装Centos包(它将处理所有的依赖项)。

  $ sudo yum安装perl-GD 


/usr/bin/ld: skipping incompatible /usr/lib/libgd.so when searching for -lgd
/usr/bin/ld: skipping incompatible /usr/lib/libgd.a when searching for -lgd
/usr/bin/ld: cannot find -lgd
collect2: ld returned 1 exit status
make: *** [blib/arch/auto/GD/GD.so] Error 1
  /usr/bin/make  -- NOT OK
Running make test
  Can't test without successful make
Running make install
  make had returned bad status, install seems impossible

I'm trying to install GD.pm on centos 5.8 and stuck on this problem. I have already installed all available graphic libraries with yum. Have any ideas?

解决方案

The GD module is just a thin layer around libgd. So you'll want to install that first.

$ sudo yum install gd

You'll probably need the development library too (for the C header files).

$ sudo yum install gd-devel

But, all in all, you're probably better off just installing the Centos package (which will handle all the dependencies for you).

$ sudo yum install perl-GD

这篇关于无法在centos 5.8上安装GD的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆