php5.3.* 5.4.* 编译出现checking size of char… configure: error: cannot compute sizeof (char)时的正确解决方案

php5.3.* 5.4.* 编译出现checking size of char… configure: error: cannot compute sizeof (char)错误时,网上现在流行的解决版本是去掉disable-rpath,正确的解决方案是由于动态动态连接库的地址不对。在执行configure前执行下面的语句就可以通过:

export LD_LIBRARY_PATH=/lib/:/usr/lib/:/usr/local/lib

 

文章来源:

Author:recoye
link:http://www.recoye.com/php-compile-check-size-of-char-error