Cannot install GD on centos 5.8

拥有回忆 提交于 2019-12-12 01:58:58

问题


/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?


回答1:


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


来源:https://stackoverflow.com/questions/26014192/cannot-install-gd-on-centos-5-8

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!