<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Error compiling PHP &#8211; lifeLinux: Linux Tips, Hacks, Tutorials, Ebooks</title>
	<atom:link href="https://lifelinux.com/tag/error-compiling-php/feed/" rel="self" type="application/rss+xml" />
	<link>https://lifelinux.com</link>
	<description>All About Linux !</description>
	<lastBuildDate>Tue, 19 Apr 2011 02:56:27 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=5.5.3</generator>
	<item>
		<title>Error compiling PHP on CentOS x64</title>
		<link>https://lifelinux.com/error-compiling-php-on-centos-x64/</link>
					<comments>https://lifelinux.com/error-compiling-php-on-centos-x64/#comments</comments>
		
		<dc:creator><![CDATA[lifeLinux]]></dc:creator>
		<pubDate>Tue, 19 Apr 2011 02:48:27 +0000</pubDate>
				<category><![CDATA[Shell Scripting]]></category>
		<category><![CDATA[WebServer]]></category>
		<category><![CDATA[compile php]]></category>
		<category><![CDATA[compile php on x64]]></category>
		<category><![CDATA[Error compiling PHP]]></category>
		<guid isPermaLink="false">http://www.lifelinux.com/?p=280</guid>

					<description><![CDATA[<p>configure: error: xml2-config not found. Please check your libxml2 installation. yum install libxml2-devel.x86_64 configure: error: Cannot find OpenSSL&#8217;s yum install openssl-devel.x86_64 configure: error: Could not find pcre.h in /usr/local yum install pcre-devel.x86_64 configure: error: Could not find pcre.h in /usr/local "--with-pcre-regex=/usr/include" \ configure: error: Could not find libpcre.(a&#124;so) in /usr/include "--with-pcre-regex=/usr" \ configure: error: Please [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://lifelinux.com/error-compiling-php-on-centos-x64/">Error compiling PHP on CentOS x64</a> appeared first on <a rel="nofollow" href="https://lifelinux.com">lifeLinux: Linux Tips, Hacks, Tutorials, Ebooks</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p></p><p>configure: error: xml2-config not found. Please check your libxml2 installation.</p>
<pre>yum install libxml2-devel.x86_64</pre>
<p>configure: error: Cannot find OpenSSL&#8217;s</p>
<pre>yum install openssl-devel.x86_64</pre>
<p><span id="more-280"></span><br />
configure: error: Could not find pcre.h in /usr/local</p>
<pre>yum install pcre-devel.x86_64</pre>
<p>configure: error: Could not find pcre.h in /usr/local</p>
<pre>"--with-pcre-regex=/usr/include" \</pre>
<p>configure: error: Could not find libpcre.(a|so) in /usr/include</p>
<pre>"--with-pcre-regex=/usr" \</pre>
<p>configure: error: Please reinstall the libcurl distribution &#8211;<br />
easy.h should be in /include/curl/</p>
<pre>yum install curl-devel.x86_64</pre>
<p>configure: error: libjpeg.(a|so) not found.</p>
<pre>yum install libjpeg-devel.x86_64</pre>
<p>configure: error: libpng.(a|so) not found.</p>
<pre>yum install libpng-devel.x86_64</pre>
<p>configure: error: freetype.h not found.</p>
<pre>yum install freetype-devel.x86_64</pre>
<p>configure: error: Please reinstall the iconv library.</p>
<pre>"--with-iconv" \</pre>
<p>configure: error: mcrypt.h not found. Please reinstall libmcrypt.</p>
<pre>yum install libmcrypt.x86_64 libmcrypt-devel.x86_64</pre>
<p>configure: error: Please reinstall libmhash &#8211; I cannot find mhash.h</p>
<pre>yum install mhash.x86_64 mhash-devel.x86_64</pre>
<p>Note that the MySQL client library is not bundled anymore!</p>
<pre>yum install php-mysql.x86_64 mysql-devel.x86_64</pre>
<p>configure: error: Please reinstall the BZip2 distribution</p>
<pre>yum install bzip2-devel.x86_64</pre>
<p>configure: error: utf8_mime2text() has new signature, but U8T_CANONICAL is missing. This should not happen. Check config.log for additional information.<br />
DISABLE IMAP<br />
configure: error: Cannot find pspell</p>
<pre>yum install aspell-devel.x86_64</pre>
<p>configure: error: Cannot find libtidy</p>
<pre>yum install libtidy.x86_64 libtidy-devel.x86_64</pre>
<p>error: xslt-config not found. Please reinstall the libxslt &gt;= 1.1.0 distribution</p>
<pre>yum install libxslt.x86_64 libxslt-devel.x86_64</pre>
<p>collect2: ld returned 1 exit status</p>
<pre>yum install glibc-utils.x86_64 libtool-ltdl-devel.x86_64</pre>
<h2>Step by step to guide PHP Compile</h2>
<p><strong>Step 1: </strong> Update &#038; Install Development Tools &#038; Libraries</p>
<pre>
yum update
yum group install "Development Tools"
yum group install "Development Libraries"
</pre>
<p><strong>Step 2:</strong> Run the bellow bash script</p>
<pre>#!/bin/sh
"./configure" \
"--prefix=/usr/local/php5" \
"--enable-force-cgi-redirect" \
"--enable-fastcgi" \
"--with-bz2" \
"--with-config-file-path=/usr/local/etc" \
"--with-config-file-scan-dir=/usr/local/etc/php.d" \
"--with-curl=/usr/local/lib" \
"--with-gd" \
"--with-gettext" \
"--with-jpeg-dir=/usr/local/lib" \
"--with-freetype-dir=/usr/local/lib" \
"--with-kerberos" \
"--with-mcrypt" \
"--with-mhash" \
"--with-mime-magic" \
"--with-mysql" \
"--with-mysqli" \
"--with-pcre-regex=/usr" \
"--with-pdo-mysql=shared" \
"--with-pdo-sqlite=shared" \
"--with-pear=/usr/local/lib/php" \
"--with-png-dir=/usr/local/lib" \
"--with-pspell" \
"--with-sqlite=shared" \
"--with-tidy" \
"--with-ttf" \
"--with-xmlrpc" \
"--with-xsl" \
"--with-zlib" \
"--with-zlib-dir=/usr/local/lib" \
"--with-openssl" \
"--with-iconv" \
"--with-libdir=lib64" \
"--enable-bcmath" \
"--enable-calendar" \
"--enable-exif" \
"--enable-ftp" \
"--enable-gd-native-ttf" \
"--enable-libxml" \
"--enable-magic-quotes" \
"--enable-soap" \
"--enable-sockets" \
"--enable-mbstring" \
"--enable-zip" \
"--enable-wddx"</pre>
<g:plusone href="https://lifelinux.com/error-compiling-php-on-centos-x64/" size="standard"  annotation="none"   ></g:plusone><p>The post <a rel="nofollow" href="https://lifelinux.com/error-compiling-php-on-centos-x64/">Error compiling PHP on CentOS x64</a> appeared first on <a rel="nofollow" href="https://lifelinux.com">lifeLinux: Linux Tips, Hacks, Tutorials, Ebooks</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://lifelinux.com/error-compiling-php-on-centos-x64/feed/</wfw:commentRss>
			<slash:comments>16</slash:comments>
		
		
			</item>
	</channel>
</rss>
