<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
<title><![CDATA[刘新修]]></title> 
<link>http://liuxinxiu.com:80/index.php</link> 
<description><![CDATA[刘新修的个人博客 (Liuxinxiu'S Blog)]]></description> 
<language>zh-cn</language> 
<copyright><![CDATA[刘新修]]></copyright>
<item>
<link>http://liuxinxiu.com:80/php-configure-err/</link>
<title><![CDATA[【转载】php-configure错误解决]]></title> 
<author>刘新修 &lt;admin@yourname.com&gt;</author>
<category><![CDATA[Linux/Unix]]></category>
<pubDate>Sun, 12 Dec 2010 07:48:39 +0000</pubDate> 
<guid>http://liuxinxiu.com:80/php-configure-err/</guid> 
<description>
<![CDATA[ 
	<p>configure: error: libjpeg.(a&#124;so) not found<br />configure: error: libjpeg.(a&#124;so) not found<br />ln -sf libjpeg.so.62.0.0 libjpeg.so</p><p><br />configure: error: libpng.(a&#124;so) not found.<br />yum install libpng-devel</p><p>32位和64位的都装了。你可以强制删除两个包，再重装64位的包。<br />rpm --allmatches --nodeps</p><p>可能在config结束后会提示:</p><p>configure: error: libjpeg.(a&#124;so) not found<br />configure: error: libjpng.(a&#124;so) not found</p><p>错误，那么请在configure前执行如下的命令:</p><p>cp -frp /usr/lib64/libjpeg.* /usr/lib/<br />cp -frp /usr/lib64/libpng* /usr/lib/<br />因为php默认就在/usr/lib/下找相关库文件,而x64机器上是在:/usr/lib64</p><p>解决这个问题，首先确定你安装的 jpeg的x86_64的的安装位置<br />shell&gt; updatedb<br />shell&gt; locate libjpeg.so<br />看到已经安装位置</p><p><br />然后明白php参数的含义<br />根据php的配置参数<br />--with-jpeg-dir=/usr --with-libdir=lib64 <br />--with-jpeg-dir=/usr ：是确定jpeg的安装位置<br />--with-libdir=lib64 ： 这个是一个全局参数，代表配置器寻找所有安装路径下的lib64目录，而不是默认安装路径下的lib目录</p><p>CentOS 5 常见的configure error的解决方法2009-10-20 10:23仅限于CentOS 5<br />configure: error: No curses/termcap library found<br />网上有的说法是：<br />--with-named-curses-libs=/usr/lib/libncursesw.so.5<br />其实是不对的，虽然能解决configure的错误，但是make的时候会提示错误，正确的做法应该是<br />yum -y install ncurses-devel<br />debian: apt-get install libncurses5-dev</p><p>configure: error: xml2-config not found<br />yum -y install libxml2-devel<br />debian:apt-get install libxml2-dev</p><p>configure: error: Cannot find OpenSSL's <br />yum -y install openssl-devel</p><p>configure: error: libjpeg.(a&#124;so) not found<br />yum -y install gd<br />yum -y install gd-devel<br />debian:apt-get install libjpeg-dev</p><p>configure: error: libpng.(a&#124;so) not found.<br />apt-get install libpng12-dev</p><p>configure: error: cannot find output from lex; giving up<br />yum -y install flex</p><p>configure: error: mod_deflate has been requested but can not be built due to prerequisite failures<br />yum -y install zlib-devel openssl-devel<br />debian:apt-get install zlib1g-dev</p><p>configure: error: libXpm.(a&#124;so) not found.<br />apt-get install libxpm-dev</p><p>on<wbr></wbr>figure: error: freetype.h not found.<br />apt-get install libfreetype6-dev</p><p>configure: error: ...No recognized SSL/TLS toolkit detected<br />apt-get install libssl-dev</p><p>&nbsp;</p><p>在x64的机器上编译PHP+GD的时候需要注意一下<br />Written by bixuan on 2007年04月12号 &ndash; 11:04</p><p>&nbsp;</p><p><br />php编译常见错误大全Posted in linux相关 &#124; 七月 22nd, 2009<br />1) Configure: error: xml2-config not found. Please check your libxml2 installation.</p><p>Solutions :<br />yum install libxml2 libxml2-devel (For Redhat &amp; Fedora)</p><p># aptitude install libxml2-dev (For ubuntu)</p><p>2) Checking for pkg-config&hellip; /usr/bin/pkg-config<br />configure: error: Cannot find OpenSSL&rsquo;s</p><p>Solutions :</p><p>yum install openssl openssl-devel</p><p>3) Configure: error: Please reinstall the BZip2 distribution</p><p>Solutions :<br />yum install bzip2 bzip2-devel</p><p>4) Configure: error: Please reinstall the libcurl distribution -<br />easy.h should be in /include/curl/</p><p>Solutions :<br />yum install curl curl-devel (For Redhat &amp; Fedora)</p><p># install libcurl4-gnutls-dev (For Ubuntu)</p><p>5) Configure: error: libjpeg.(also) not found.</p><p>Solutions :<br />yum -y install gd<br />yum -y install gd-devel<br />yum install libjpeg libjpeg-devel</p><p>6) Configure: error: libpng.(also) not found.</p><p>Solutions :<br />yum install libpng libpng-devel<br />apt-get install libpng12-dev</p><p>7) Configure: error: freetype.h not found.<br />Solutions :<br />yum install freetype-devel</p><p>Configure: error: Unable to locate gmp.h</p><p>Solutions :<br />yum install gmp-devel</p><p>9) Configure: error: Cannot find MySQL header files under /usr.<br />Note that the MySQL client library is not bundled anymore!</p><p>Solutions :<br />yum install mysql-devel (For Redhat &amp; Fedora)</p><p># apt-get install libmysql++-dev (For Ubuntu)</p><p>10) Configure: error: Please reinstall the ncurses distribution</p><p>Solutions :<br />yum install ncurses ncurses-devel</p><p>11) Checking for unixODBC support&hellip; configure: error: ODBC header file &lsquo;/usr/include/sqlext.h&rsquo; not found!</p><p>Solutions :<br />yum install unixODBC-devel</p><p>12) Configure: error: Cannot find pspell</p><p>Solutions :<br />yum install pspell-devel</p><p>13) configure: error: mcrypt.h not found. Please reinstall libmcrypt.</p><p>Solutions :<br />yum install libmcrypt libmcrypt-devel (For Redhat &amp; Fedora)</p><p># apt-get install libmcrypt-dev</p><p>14) Configure: error: snmp.h not found. Check your SNMP installation.</p><p>Solutions :</p><p>yum install net-snmp net-snmp-devel</p><p>15)开启LDAP服务还需要<br />yum -y install openldap-devel openldap-servers openldap-clients</p><p>16)configure: error: No curses/termcap library found<br />网上有的说法是：<br />&ndash;with-named-curses-libs=/usr/lib/libncursesw.so.5<br />其实是不对的，虽然能解决configure的错误，但是make的时候会提示错误，正确的做法应该是<br />yum -y install ncurses-devel (for redhat)<br />apt-get install libncurses5-dev(for debian)</p><p>17)configure: error: cannot find output from lex; giving up<br />yum -y install flex</p><p>18)configure: error: mod_deflate has been requested but can not be built due to prerequisite failures<br />yum -y install zlib-devel openssl-devel<br />debian:apt-get install zlib1g-dev</p><p>19)configure: error: libXpm.(a&#124;so) not found.<br />apt-get install libxpm-dev<br />&nbsp;</p>
]]>
</description>
</item><item>
<link>http://liuxinxiu.com:80/php-configure-err/#blogcomment</link>
<title><![CDATA[[评论] 【转载】php-configure错误解决]]></title> 
<author> &lt;user@domain.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Thu, 01 Jan 1970 00:00:00 +0000</pubDate> 
<guid>http://liuxinxiu.com:80/php-configure-err/#blogcomment</guid> 
<description>
<![CDATA[ 
	
]]>
</description>
</item>
</channel>
</rss>