首页 > 开发 > Apache > 正文

Linux Apache 安装错误信息

2018-10-16 21:21:43
字体:
来源:转载
供稿:网友

  今天在centos5.3 64位的机器上编译apache 2.2.6 出现

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

  解决方案:

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

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

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

  #./buildconf

  #./configure --enable-lib64 --prefix=/usr/local/apache2 --with-included-apr --enable-so --enable-deflate=shared --enable-expires=shared --enable-rewrite=shared --enable-static-support --disable-userdir

  #make && make install

  #echo '/usr/local/apache2/bin/apachectl start ' >> /etc/rc.local

发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表