在 Ubuntu 22 上编译 apache2.4.25 时出错

在 Ubuntu 22 上编译 apache2.4.25 时出错

我正在尝试在 Ubuntu 上编译 apache2.4.25,并且 APR 和 APR Utils 已经安装,OpenSSL 的版本是 1.1.0h,但我收到一些错误,例如:

/usr/local/apr/build-1/libtool --silent --mode=link gcc  -g -O2   -lssl -lcrypto -lcrypt -lpthread  \
         -o ab  ab.lo       /usr/local/apr/lib/libaprutil-1.la -lexpat /usr/local/apr/lib/libapr-1.la -lcrypt -lpthread -lm
/usr/bin/ld: ab.o: in function `ssl_print_cert_info':
/home/me/httpd-2.4.25/support/ab.c:650: undefined reference to `EVP_PKEY_bits'
/usr/bin/ld: ab.o: in function `ssl_print_info':
/home/me/httpd-2.4.25/support/ab.c:681: undefined reference to `SSL_get_peer_certificate'
/usr/bin/ld: ab.o: in function `ssl_proceed_handshake':
/home/me/httpd-2.4.25/support/ab.c:714: undefined reference to `SSL_get_peer_certificate'
/usr/bin/ld: /home/me/httpd-2.4.25/support/ab.c:716: undefined reference to `EVP_PKEY_bits'
/usr/bin/ld: ab.o: in function `main':
/home/me/httpd-2.4.25/support/ab.c:2398: undefined reference to `SSLv2_client_method'
/usr/bin/ld: /home/me/httpd-2.4.25/support/ab.c:2468: undefined reference to `CRYPTO_malloc_init'
collect2: error: ld returned 1 exit status

有人能帮助我吗?

相关内容