杨思为 | 我们一家

/usr/lib/libexpat.so: could not read symbols: File in wrong format

 服务器在装好Redhat企业版后,开始安装MySql-5.0.27+httpd-2.2.6+php-5.2.5这几个软件,和以往一样进行安装,除了Apache2安装出现了“/usr/lib/libexpat.so: could not read symbols: File in wrong format ”问题以外,其它软件一切正常,以下是我对apache编译configure后进行make遇到的问题:

/usr/lib/libexpat.so: could not read symbols: File in wrong format

这个问题出现在configure后的make,也就是说configure都能顺利通过,但是在make这一步时确有问题了。/usr/lib/libexpat.so: could not read symbols: File in wrong format

废话不说了,就说说我的解决方案。

1、删除安装目录下的configure文件,在我的环境中是httpd-2.2.6/configure

2、删除“httpd-2.26/srclib/apr-util/configure”

3、通过以下命令重建编译文件(以下命令在http-2.26/目录下运行)。

#./buildconf

4. 、通过以上重建编译文件,现在可以拥有64位的apr-util了,最后在编辑时加上以上参数:

–enable-lib64

以下是我编译的例子:

[root@yangjf packages]# ./configure –enable-lib64 -libdir=/usr/lib64 –enable-ssl –with-ssl=/usr/local/ssl –enable-module=so –prefix=/usr/local/apache
[root@yangjf packages]#make
[root@yangjf packages]#make install

搞定!!!如果您有什么问题,请给我留言:)

作者: 分类:服务器管理 标签: 时间:2008年1月17日

当前位置:首页>开发研究>服务器管理>

上一篇:

下一篇:

  1. 八月 22nd, 2008 10:33 | #1

    似乎不删除,只需运行./buildconf就行

  2. 十月 29th, 2008 17:31 | #2

    Good site! Interesting information.. )

  3. 十月 29th, 2008 17:47 | #3

    不删除也是可以的,呵呵,只是好像有几次不删除老出问题:)

  4. 解决不了
    六月 12th, 2010 09:37 | #4

    /usr/lib/libexpat.so: could not read symbols: File in wrong format
    collect2: ld returned 1 exit status
    make[2]: *** [htpasswd] Error 1
    make[2]: Leaving directory `/home/net/httpd-2.0.59/support’
    make[1]: *** [all-recursive] Error 1
    make[1]: Leaving directory `/home/net/httpd-2.0.59/support’
    make: *** [all-recursive] Error 1

    依然报错。。希望楼主给我回复。。。QQ:499809608
    Apache 2.0.59的

  5. 六月 12th, 2010 09:50 | #5

    :( 抱歉,我可能帮不了你了,好久没折腾这东西。

  1. 没有任何引用。

热门文章