打印

LNMPA 常见问题整理(不定期更新)

centos64 安装apache 报错

centos 64   安装apache
make[1]: Entering directory `/var/tmp/web/lnmp0.7/httpd-2.2.17/support'
make[2]: Entering directory `/var/tmp/web/lnmp0.7/httpd-2.2.17/support'
/var/tmp/web/lnmp0.7/httpd-2.2.17/srclib/apr/libtool --silent --mode=link gcc -g -O2 -pthread     -L/usr/lib -L/usr/kerberos/lib   -o htpasswd  htpasswd.lo   -lm /var/tmp/web/lnmp0.7/httpd-2.2.17/srclib/pcre/libpcre.la /var/tmp/web/lnmp0.7/httpd-2.2.17/srclib/apr-util/libaprutil-1.la -lexpat -liconv /var/tmp/web/lnmp0.7/httpd-2.2.17/srclib/apr/libapr-1.la -luuid -lrt -lcrypt -lpthread -ldl
/usr/bin/ld: skipping incompatible /usr/lib/libm.so when searching for -lm
/usr/bin/ld: skipping incompatible /usr/lib/libm.a when searching for -lm
/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 `/var/tmp/web/lnmp0.7/httpd-2.2.17/support'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/web/lnmp0.7/httpd-2.2.17/support'
make: *** [all-recursive] Error 1

TOP

问题解决

编译apache时添加  --enable-lib64 --libdir=/usr/lib64

TOP