<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
<title><![CDATA[阿Tim日志]]></title> 
<link>https://atim.cn/index.php</link> 
<description><![CDATA[专业的php开发者.开发团队的带队人]]></description> 
<language>zh-cn</language> 
<copyright><![CDATA[阿Tim日志]]></copyright>
<item>
<link>https://atim.cn/apache_php_gd_freetype_update/</link>
<title><![CDATA[升级GD 安装freetype]]></title> 
<author>bkkkd &lt;partybase@gmail.com&gt;</author>
<category><![CDATA[开发应用]]></category>
<pubDate>Sat, 03 Jan 2009 06:24:12 +0000</pubDate> 
<guid>https://atim.cn/apache_php_gd_freetype_update/</guid> 
<description>
<![CDATA[ 
	从php5后GD已经加入到扩展库中，除非系需要更高级的版本，如果没有特殊需要，可以直接使用gd，编译时加上以下的选项<br/><div class="code"><br/><br/>&#039;--with-gd&#039; &#92;<br/>&#039;--enable-exif&#039; &#92;<br/>&#039;--enable-gd-native-ttf&#039; &#92;<br/>&#039;--with-zlib&#039; &#92;<br/>&#039;--with-png-dir&#039; &#92;<br/>&#039;--with-jpeg-dir&#039; &#92;<br/>&#039;--with-freetype-dir&#039; &#92;<br/>&#039;--with-ttf&#039; &#92;<br/>&#039;--with-gettext=/usr/lib&#039; &#92;<br/>&#039;--enable-gd-jis-conv&#039; &#92;<br/></div><br/><br/>具体的安装<a href="http://www.google.cn/search?hl=zh-CN&q=apache+php+mysql+gd&btnG=Google+%E6%90%9C%E7%B4%A2&meta=&aq=f&oq=" target="_blank">apache php mysql gd</a>的方法可以在gg上搜索。<br/><br/>由于我已经这安装了好了php跟GD,但是当时是没有支持freetype不能在图片上写文字。<br/>因为现在需要在图片上写文字。重新编译php，但很多人像我这样的已经安装了GD但原来未有支持freetype，或者其它的某些功能，但加上以下的选项重新编译后，还不能使用新功能，就需要在源代码的目录中运行make clean,然后再运行编译程序<br/>进入到原来安装php的源码目录下<br/><div class="code"><br/>vi ./config.nice<br/></div><br/>将会看到<br/>类形似这样的编译条件，这是上一次的成功编译的条件<br/><div class="code"><br/>#! /bin/sh<br/>#<br/># Created by configure<br/><br/>&#039;./configure&#039; &#92;<br/>&#039;--with-mysql=/usr/local/mysql&#039; &#92;<br/>&#039;--with-apxs2=/usr/local/apache/bin/apxs&#039; &#92;<br/>&#039;--with-gd&#039; &#92;<br/>&#039;--enable-exif&#039; &#92;<br/>&#039;--enable-gd-native-ttf&#039; &#92;<br/>&#039;--enable-inline-optimization&#039; &#92;<br/>&#039;--with-zlib&#039; &#92;<br/>&#039;--with-png-dir&#039; &#92;<br/>&#039;--with-jpeg-dir&#039; &#92;<br/>&#039;--enable-mbstring&#039; &#92;<br/>&#039;--with-gettext=/usr/lib&#039; &#92;<br/>&#039;--enable-gd-jis-conv&#039; &#92;<br/>&quot;$@&quot;<br/></div><br/>我顺便升级了一下jpeg6,png,zlib,以下是最后的编译代码<br/><div class="code"><br/>#! /bin/sh<br/>#<br/># Created by configure<br/><br/>&#039;./configure&#039; &#92;<br/>&#039;--with-mysql=/usr/local/mysql&#039; &#92;<br/>&#039;--with-apxs2=/usr/local/apache/bin/apxs&#039; &#92;<br/>&#039;--with-gd&#039; &#92;<br/>&#039;--enable-exif&#039; &#92;<br/>&#039;--enable-gd-native-ttf&#039; &#92;<br/>&#039;--enable-inline-optimization&#039; &#92;<br/>&#039;--with-zlib=/usr/local/zlib&#039; &#92;<br/>&#039;--with-png-dir=/usr/local/libpng&#039; &#92;<br/>&#039;--with-jpeg-dir=/usr/local/jpeg6&#039; &#92;<br/>&#039;--with-freetype-dir=/usr/local/freetype&#039; &#92;<br/>&#039;--with-ttf&#039; &#92;<br/>&#039;--enable-mbstring&#039; &#92;<br/>&#039;--with-gettext=/usr/lib&#039; &#92;<br/>&#039;--enable-gd-jis-conv&#039; &#92;<br/>&quot;$@&quot;<br/></div><br/>Tags - <a href="https://atim.cn/tags/fedora/" rel="tag">fedora</a> , <a href="https://atim.cn/tags/apache/" rel="tag">apache</a> , <a href="https://atim.cn/tags/php/" rel="tag">php</a> , <a href="https://atim.cn/tags/gd/" rel="tag">gd</a> , <a href="https://atim.cn/tags/freetype/" rel="tag">freetype</a> , <a href="https://atim.cn/tags/%25E6%259C%258D%25E5%258A%25A1%25E5%2599%25A8%25E5%25AE%2589%25E8%25A3%2585/" rel="tag">服务器安装</a>
]]>
</description>
</item><item>
<link>https://atim.cn/apache_php_gd_freetype_update/#blogcomment</link>
<title><![CDATA[[评论] 升级GD 安装freetype]]></title> 
<author> &lt;user@domain.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Thu, 01 Jan 1970 00:00:00 +0000</pubDate> 
<guid>https://atim.cn/apache_php_gd_freetype_update/#blogcomment</guid> 
<description>
<![CDATA[ 
	
]]>
</description>
</item>
</channel>
</rss>