魏长东

weichangdong

正在查看: 2017年08月日志归档(第 1 页 / 共 2 篇)

lua 验证码

copy fron 阿里云栖(记录备用)

 

安装gd,GD版本:gd-2.0.33

yum install -y libjpeg-devel libpng-devel freetype-devel fontconfig-devel libXpm-devel

$ wget http://www.boutell.com/gd/http/gd-2.0.33.tar.gz
$ tar zvxf gd-2.0.33.tar.gz
$ cd gd-2.0.33
$ ./configure
$ make && make install

»»阅读全文

libgd.so.2: cannot open shared object

安装完后,执行命令的时候出现:error while loading shared libraries: libiconv.so.2: cannot open shared object file: No such file or directory

解决办法如下:

1.在/etc/ld.so.conf中加一行/usr/local/lib,

 2.然后运行/sbin/ldconfig,文件解决,没有报错了~~