<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
<title><![CDATA[向东博客 专注WEB应用 构架之美 --- 构架之美，在于尽态极妍 | 应用之美，在于药到病除]]></title> 
<link>http://www.jackxiang.com/index.php</link> 
<description><![CDATA[赢在IT，Playin' with IT,Focus on Killer Application,Marketing Meets Technology.]]></description> 
<language>zh-cn</language> 
<copyright><![CDATA[向东博客 专注WEB应用 构架之美 --- 构架之美，在于尽态极妍 | 应用之美，在于药到病除]]></copyright>
<item>
<link>http://www.jackxiang.com/post//</link>
<title><![CDATA[编译PHP报错：char *... configure: error: cannot compute sizeof (char *), 77]]></title> 
<author>jack &lt;xdy108@126.com&gt;</author>
<category><![CDATA[WEB2.0]]></category>
<pubDate>Sun, 24 Jan 2010 14:06:08 +0000</pubDate> 
<guid>http://www.jackxiang.com/post//</guid> 
<description>
<![CDATA[ 
	这几天编译PHP5.3.1 fast cgi的时候发现一个问题；configure的时候加上--disable-rpath就会报：<br/>char *... configure: error: cannot compute sizeof (char *), 77<br/><br/>去掉这个参数就能正常通过，但是并不是所有的机器上都出这个错误；看来还是和环境有关系。<br/><br/>看了下文档；这个参数貌似是运行时不去某些路径搜索动态库。不是太理解。<br/><br/><br/><br/><div class="code">checking sys/un.h presence... yes<br/>checking for sys/un.h... yes<br/>checking errno.h usability... yes<br/>checking errno.h presence... yes<br/>checking for errno.h... yes<br/>checking whether zend_object_value is packed... no<br/>checking for sqlite support... yes<br/>checking whether to enable UTF-8 support in sqlite (default: ISO-8859-1)... no<br/>checking for PDO includes... (cached) /usr/local/src/v1.0/software/php-5.3.1/ext<br/>checking for lemon... no<br/>configure: WARNING: lemon versions supported for regeneration of libsqlite parsers: 1.0 (found: none).<br/>checking for char *... yes<br/>checking size of char *... configure: error: cannot compute sizeof (char *), 77<br/>See `config.log&#039; for more details.</div><br/><br/><br/>3.安装magickwand-0.1.8<br/><br/>unzip magickwand-0.1.8.zip<br/><br/>mv magickwand php-4.3.6/ext/<br/><br/>cd php-4.3.6/ext/magickwand<br/><br/>phpize<br/><br/>cd ../../<br/><br/>rm -rf configure<br/><br/>./buildconf –force<br/><br/>export PATH=$&#123;PATH&#125;:/usr/local/ImageMagick/bin<br/><br/>#关键一步,否则编译无法通过,会有这样错误误导你:<br/><br/><div class="code">.......... checking for ImageMagick / MagickWand in provided path... found in /usr/local/ImageMagick checking for ImageMagick / MagickWand 6.2.4 or greater with /usr/local/ImageMagick/bin/Wand-config... 6.2.6 /usr/local/ImageMagick/bin/Wand-config: line 42: Magick-config: command not found /usr/local/ImageMagick/bin/Wand-config: line 39: Magick-config: command not found ........... ........... checking size of char... configure: error: cannot compute sizeof (char), 77 See `config.log&#039; for more details.</div><br/><br/>./configure --with-png-dir=/usr --with-gd --enable-gd-native-ttf --with-ttf --with-freetype --without-gdbm --with-gettext --with-ncurses --with-gmp --with-iconv --with-jpeg-dir=/usr&nbsp;&nbsp;--with-png --enable-ftp --enable-sockets -with-xml --with-dom --with-zlib --enable-track-vars --with-mysql=/usr/local/mysql --with-imagick=/usr/local/ImageMagick --with-apxs2=/usr/local/apache2/bin/apxs<br/><br/>make<br/><br/>make install<br/><br/><br/>补充问题:<br/>如果MagickWand 执行./configure 时，出现checking for MagickSetImageTicksPerSecond in -lWand… NO的错误，可能是您现在安装了两个版本的ImageMagick，且默认的版本低于ImageMagick-6.3.3<br/>可以用Magick-config –version命令查看其版本。<br/>通常是系统安装了rpm包，解决方法是卸载掉libImageMagick包:<br/>rpm -qa &#124; grep 'ImageMagick'<br/>rpm -e ImageMagick*
]]>
</description>
</item><item>
<link>http://www.jackxiang.com/post//#blogcomment</link>
<title><![CDATA[[评论] 编译PHP报错：char *... configure: error: cannot compute sizeof (char *), 77]]></title> 
<author> &lt;user@domain.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Thu, 01 Jan 1970 00:00:00 +0000</pubDate> 
<guid>http://www.jackxiang.com/post//#blogcomment</guid> 
<description>
<![CDATA[ 
	
]]>
</description>
</item>
</channel>
</rss>