libpcre.so无法读取符号:Apache 2.4安装

时间:2014-02-01 14:33:25

标签: pcre apache2.4

您好我正在尝试在Linux上安装2.4:     Linux el5 x86_64 x86_64 x86_64 GNU / Linux

'make install'后我收到错误:

**/usr/local/lib/libpcre.so: could not read symbols: File in wrong format**
collect2: ld returned 1 exit status
make[1]: *** [httpd] Error 1
make[1]: Leaving directory `/opt/myapp/httpd-2.4.7'
make: *** [all-recursive] Error 1

我正在执行的我的config.nice:

CFLAGS="-m32"; export CFLAGS
LDFLAGS="-m32"; export LDFLAGS
"./configure" \
"--prefix=/opt/myapp/apache2.4" \
"--with-mpm=worker" \
"--enable-static-support" \
"--enable-ssl=static" \
"--enable-modules=most" \
"--disable-authndbd" \
"--disable-authn-dbm" \
"--disable-dbd" \
"--enable-static-logresolve" \
"--enable-static-rotatelogs" \
"--enable-proxy=static" \
"--enable-proxyconnect=static" \
"--enable-proxy-ftp=static" \
"--enable-proxy-http=static" \
"--enable-rewrite=static" \
"--enable-so=static" \
"--with-ssl=/opt/myapp/apache2.4/openssl" \
"--host=x86_32-unknown-linux-gnu" \
"host_alias=x86_32-unknown-linux-gnu" \
"CFLAGS=-m32" \
"LDFLAGS=-m32" \
"--with-included-apr" \
"--with-pcre=/usr/local" \
"$@"

LDD:         ldd /usr/local/lib/libpcre.so         libc.so.6 => /lib64/libc.so.6(0x00002b2ce3b82000)         /lib64/ld-linux-x86-64.so.2(0x0000003e1c800000)

文件:     lrwxrwxrwx 1 root root 16 Jan 31 15:20 /usr/local/lib/libpcre.so - > libpcre.so.1.2.1

我无法弄清楚如何读取“无法读取符号”。我在/ lib / local中配置了pcre8.34。任何帮助,将不胜感激。谢谢!

1 个答案:

答案 0 :(得分:0)

您正在尝试安装Apache的32位(-m32标志)版本。尝试安装64位版本或安装32位版本的libpcre。