<?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>OurApache &#187; 64位</title>
	<atom:link href="http://ourapache.com/archives/tag/64%e4%bd%8d/feed" rel="self" type="application/rss+xml" />
	<link>http://ourapache.com</link>
	<description>我们致力于一个Apache知识的分享网站</description>
	<lastBuildDate>Tue, 13 Apr 2010 05:18:24 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>在64位机器上关于Apache 2.2.3版的编译问题</title>
		<link>http://ourapache.com/archives/142</link>
		<comments>http://ourapache.com/archives/142#comments</comments>
		<pubDate>Tue, 17 Feb 2009 04:39:06 +0000</pubDate>
		<dc:creator>OurApache</dc:creator>
				<category><![CDATA[Apache解错方案]]></category>
		<category><![CDATA[64位]]></category>
		<category><![CDATA[编译]]></category>

		<guid isPermaLink="false">http://www.ourapache.com/?p=142</guid>
		<description><![CDATA[2.2.3版的apache在64位机器上进行编译会出现错误]]></description>
			<content:encoded><![CDATA[<p>2.2.3版的apache在64位机器上进行编译会出现如下错误：</p>
<blockquote><p>usr/lib/libexpat.so: could not read symbols: File in wrong format<br />
collect2: ld returned 1 exit status<br />
make[3]: *** [libaprutil-1.la] 错误 1<br />
make[3]: Leaving directory `/root/tar/httpd-2.2.3/srclib/apr-util&#8217;<br />
make[2]: *** [all-recursive] 错误 1<br />
make[2]: Leaving directory `/root/tar/httpd-2.2.3/srclib/apr-util&#8217;<br />
make[1]: *** [all-recursive] 错误 1<br />
make[1]: Leaving directory `/root/tar/httpd-2.2.3/srclib&#8217;<br />
make: *** [all-recursive] 错误 1<br />
 </p></blockquote>
<p>错误的解决方法可以参考邮件：<a href="http://www.mail-archive.com/bugs@httpd.apache.org/msg24675.html">http://www.mail-archive.com/bugs@httpd.apache.org/msg24675.html</a></p>
<p>具体的做法如下：<br />
1 setenv LDFLAGS “-L/usr/lib64 -L/lib64&#8243;    [用于csh，其他shell请用export命令]<br />
2 ./configure 时加入 &#8211;libdir=/usr/lib64 参数<br />
3 修改./srclib/apr-util/下的Makefile 改 APRUTIL_LIBS 的值中的”/usr/lib/libexpat.la” 为 “/usr/lib64/libexpat.la”<br />
然后进行编译。</p>
<h3  class="related_post_title">相关文章</h3><ul class="related_post"><li>2009年08月13号 -- <a href="http://ourapache.com/archives/286" title="linux下查看nginx，apache，mysql，php的编译参数">linux下查看nginx，apache，mysql，php的编译参数</a></li><li>2009年06月7号 -- <a href="http://ourapache.com/archives/251" title="apxs是Apache编译和安装扩展模块的工具">apxs是Apache编译和安装扩展模块的工具</a></li><li>2008年12月27号 -- <a href="http://ourapache.com/archives/13" title="单独编译apache的rewrite模块">单独编译apache的rewrite模块</a></li></ul>
	标签：<a href="http://ourapache.com/archives/tag/64%e4%bd%8d" title="64位" rel="tag">64位</a>, <a href="http://ourapache.com/archives/category/debug" title="Apache解错方案" rel="tag">Apache解错方案</a>, <a href="http://ourapache.com/archives/tag/%e7%bc%96%e8%af%91" title="编译" rel="tag">编译</a><br />
]]></content:encoded>
			<wfw:commentRss>http://ourapache.com/archives/142/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

