• 软件测试技术
  • 软件测试博客
  • 软件测试视频
  • 开源软件测试技术
  • 软件测试论坛
  • 软件测试沙龙
  • 软件测试资料下载
  • 软件测试杂志
  • 软件测试人才招聘
    暂时没有公告

字号: | 推荐给好友 上一篇 | 下一篇

升级安装GD

发布: 2007-6-21 15:32 | 作者:   | 来源:   | 查看: 21次 | 进入软件测试论坛讨论

领测软件测试网

   
  好久没升级我服务器上的软件包,今天我对每个重要的软件都看了一下,发现GD和php都有了升级,事不宜迟马上升级

gd的下载我没选择官方网站,因为官方的版本是不支持gif创建函数的,为什么会不支持呢?
官方网站是这样解释的:

When will you put GIF support back into gd?
Many have asked whether gd will support reading and creating GIF files again, since we have passed June 20th, 2003, when the well-known Unisys LZW patent expired in the US. Although this patent has expired in the United States, this patent does not expire for another year in the rest of the world. Since I have no way of limiting distribution of GIF-reading-and-creating code to US users only that is guaranteed to please somebody else's lawyer, I have opted to follow the same policy that the ImageMagick authors are following: GIF support will not reappear in gd until the patent expires world-wide on July 7th, 2004. I realize this situation is frustrating for many; please direct your anger and complaints toward the questionable patent system that allows the patenting of such straightforward algorithms in the first place. Thank you!

所以我从http://www.rime.com.au/gd/下载已经打了gif补丁的gd库.

wget http://downloads.rhyme.com.au/gd/gd-2.0.21gif_040120.tar.gz

tar zvxf gd-2.0.21gif_040120.tar.gz

cd gd-2.0.21gif

./configure --with-png=/usr --with-freetype=/usr --with-jpeg=/usr --with-xpm=/usr

make

make install


安装完毕,当然如果你用php的话,最好重新编译一下php,反正今天php今天也要升级到4.3.5.php的编译我就不多说了,不过php的官方好像说对gd的支持只到2.0.17,不知我这么高的版本是否支持的很好,反正不管了,升级.go go go

编译php的时候需要加哪些参数呢?

--with-freetype-dir=/usr --with-png-dir=/usr --with-gd=/usr/local --enable-gd-native-ttf --with-ttf --with-jpeg-dir=/usr --with-png

请问1.--with-freetype-dir=/usr --with-png-dir=/usr --with-gd=/usr/local

为什么不是 =/usr/lib 或者/usr/include 或者/usr/local/include 或/usr/local/lib呢?

2.--enable-gd-native-ttf --with-ttf

enable-gd-native-ttf是开启了什么功能呢?

--with-ttf 后为什么没有相应的 =/usr呢?

--with-freetype-dir是指它安装的路径,而不单单是lib路径或者include路径

--enable-gd-native-ttf GD: Enable TrueType string function.

延伸阅读

文章来源于领测软件测试网 https://www.ltesting.net/


关于领测软件测试网 | 领测软件测试网合作伙伴 | 广告服务 | 投稿指南 | 联系我们 | 网站地图 | 友情链接
版权所有(C) 2003-2010 TestAge(领测软件测试网)|领测国际科技(北京)有限公司|软件测试工程师培训网 All Rights Reserved
北京市海淀区中关村南大街9号北京理工科技大厦1402室 京ICP备10010545号-5
技术支持和业务联系:info@testage.com.cn 电话:010-51297073

软件测试 | 领测国际ISTQBISTQB官网TMMiTMMi认证国际软件测试工程师认证领测软件测试网