php make报错:/usr/local/openssl/lib/libssl.a: could not read symbols: Bad value

原因openssl

重新编译安装

修正参数如下:

openssl:

./config -fPIC --prefix=/usr/local/openssl/ enable-shared

 

Apache:

代码:
CFLAGS="-m64 -O3" CXXFLAGS="-m64 -O3" ./configure --prefix=/usr/local/apache --disable-cgi --disable-cgid --disable-nw-ssl --enable-auth-anon=shared --enable-auth-dbm=shared --enable-auth-digest=shared  --enable-cache=shared --enable-charset-lite=shared --enable-dav=shared --enable-dav-fs=shared --enable-dav-lock=shared --enable-deflate=shared --enable-disk-cache=shared --enable-expires=shared --enable-file-cache=shared --enable-mem-cache=shared --enable-mime-magic=shared --enable-proxy=shared --enable-proxy-ajp=shared --enable-proxy-balancer=shared --enable-proxy-connect=shared --enable-proxy-ftp=shared --enable-proxy-http=shared --enable-rewrite=shared --enable-so --enable-ssl=static --enable-unique-id=shared --enable-usertrack=shared --enable-vhost-alias=shared --with-mpm=prefork --with-ssl=/usr/local/openssl



PHP:

代码:
CFLAGS="-m64 -O3" CXXFLAGS="-m64 -O3" ./configure --prefix=/usr/local/php --with-apxs2=/usr/local/apache/bin/apxs --with-mysql=mysqlnd  --with-mysqli=mysqlnd  --with-pdo-mysql=mysqlnd --enable-mbstring=all --with-mcrypt --disable-cgi --enable-libgcc --enable-zend-multibyte --with-openssl

你可能感兴趣的:(PHP)