Warning: curl_exec() has been disabled for security reasons in /pub/host/sunboyu/sunboyu/www/wp-includes/http.php on line 1022
gd库的编译配置-临时笔记 » Blog Archive 一个程序猿 孙小一,孙小二,PHP,MYSQL,LINUX,APACHE,原创技术,扯淡

gd库的编译配置-临时笔记

作者 : admin 于 2008-07-18 10:23:45
2008
07-18

./configure –with-jpeg-dir=/usr/lib/libjpeg.so -with-png=/usr/lib/libpng.so –with-freetype=/opt/freetype-2.3.7

前提 cp jpeglib.h /usr/include/jpeglib.h
[root@localhost jpeg-6b]# cp jconfig.h /usr/include/jconfig.h
[root@localhost jpeg-6b]# cp jmorecfg.h /usr/include/jmorecfg.h
[root@localhost jpeg-6b]# cp jerror.h /usr/include/jerror.h

cp png* /usr/include/

网上看了好多,结果都不对,倒是一个写python的哥们的笔记提醒了我。
那些缺失的库其实都在源码包里,只不过安装的时候没有复制到系统库目录下,手工拷贝过去就可以了。
检查一下configure,是不是有参数,指定是否拷贝.

发表评论




XHTML:你可以使用的标签: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

(若看不到验证码,请重新加载页面。)