今天为了在一台新机器上部署nagios监控ORACLE,安装APACHE的时候出现了如下错误:
环境:REDHAT 5.5 X64
httpd版本:httpd-2.2.8
错误信息:/usr/lib/libexpat.so: could not read symbols: File in wrong format
查看了好多帖子,错误很明确,是由于64BIT的操作系统编译的时候有点问题按照如下方法,即可解决:
The patch updates apu-conf.m4 to build an updated configure that knows what to do with a 64 bit directive.
Solution:
1. Delete file 'srclib/apr-util/configure' under 'httpd-2.0.61'
2. Delete 'configure' file under 'httpd-2.0.61'
3. rebuild the configure scripts, run
./buildconf
4. You now have a 64 bit enabled apr-util. To take advantage of it, you need to add this line to the root configure options:
–enable-lib64,
for example: run
[root@fc6x64v2 packages]# ./configure --enable-lib64 -libdir=/usr/lib64 --enable-ssl --with-ssl=/usr/local/ssl --enable-module=so --prefix=/usr/local/apache2061
make
make install
Then everything will OK.