安裝apache時(shí)出現(xiàn)錯(cuò)誤:
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 庫(kù)有問(wèn)題, 重新安裝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
就可以了