安装apache时出现错误:
ab.o: In function `main':
/xxx/httpd-2.4.x/support/ab.c:2273: undefined reference to `TLSv1_2_client_method'
/xxx/httpd-2.4.x/support/ab.c:2271: undefined reference to `TLSv1_1_client_method'
collect2: ld returned 1 exit status
make[2]: *** [ab] Error 1
make[2]: Leaving directory `/xxx/httpd-2.4.x/support'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/xxx/httpd-2.4.x/support'
make: *** [all-recursive] Error 1
解决方法:open-ssl 库有问题, 重新安装openssl
cd openssl-1.0.2k
./config -fPIC shared zlib
./config -t
make depend
make
make test
make install
openssl version -a
重新编译httpd
./configure --prefix=/xxx/apache2.4.25 --with-apr=/usr/local/apr --with-apr-util=/usr/local/apr-util --with-pcre=/usr/local/pcre --with-ssl=/usr/local/ssl --enable-so
make && make install
就可以了