我在apache中编译源代码时遇到错误

我在apache中编译源代码时遇到错误,apache,Apache,下面是运行make命令时出现的错误 /home/apache/httpd-2.4.41/srclib/apr/libtool --silent --mode=link gcc -std=gnu99 -g -O2 -pthread \ -L/opt/httpd/expat/lib -o ab ab.lo /home/apache/httpd-2.4.41/srclib/apr-util/libaprutil-1.la -lexpat /home/apache/h

下面是运行make命令时出现的错误

/home/apache/httpd-2.4.41/srclib/apr/libtool --silent --mode=link gcc -std=gnu99  -g -O2 -pthread    \
      -L/opt/httpd/expat/lib   -o ab  ab.lo      /home/apache/httpd-2.4.41/srclib/apr-util/libaprutil-1.la -lexpat /home/apache/httpd-2.4.41/srclib/apr/libapr-1.la -luuid -lrt -lcrypt -lpthread -ldl -lm -lssl -lcrypto -luuid -lrt -lcrypt -lpthread -ldl
ab.o: In function `ssl_state_cb':
/home/apache/httpd-2.4.41/support/ab.c:575: undefined reference to `SSL_in_init'
ab.o: In function `ssl_print_cert_info':
/home/apache/httpd-2.4.41/support/ab.c:653: undefined reference to `X509_get_version'
/home/apache/httpd-2.4.41/support/ab.c:655: undefined reference to `X509_getm_notBefore'
/home/apache/httpd-2.4.41/support/ab.c:659: undefined reference to `X509_getm_notAfter'
ab.o: In function `sk_X509_num':
/usr/local/include/openssl/x509.h:99: undefined reference to `OPENSSL_sk_num'
ab.o: In function `sk_X509_value':
/usr/local/include/openssl/x509.h:99: undefined reference to `OPENSSL_sk_value'
ab.o: In function `main':
/home/apache/httpd-2.4.41/support/ab.c:2305: undefined reference to `TLS_client_method'
/home/apache/httpd-2.4.41/support/ab.c:2560: undefined reference to `TLS_client_method'
/home/apache/httpd-2.4.41/support/ab.c:2637: undefined reference to `OPENSSL_init_ssl'
/home/apache/httpd-2.4.41/support/ab.c:2638: undefined reference to `OPENSSL_init_ssl'
/home/apache/httpd-2.4.41/support/ab.c:2647: undefined reference to `SSL_CTX_set_options'
ab.o: In function `test':
/home/apache/httpd-2.4.41/support/ab.c:1990: undefined reference to `SSL_in_init'
collect2: error: ld returned 1 exit status
make[2]: *** [ab] Error 1
make[2]: Leaving directory `/home/apache/httpd-2.4.41/support'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/apache/httpd-2.4.41/support'
make: *** [all-recursive] Error 1
请让我知道如何进一步进行。 openssl版本是openssl>版本
OpenSSL 1.1.1c 2019年5月28日

我不认为这是因为OpenSSL。要解决此问题,请尝试以下操作:

这将清除以前完成的所有编译,因此可能会消除问题

make clean

如果这不起作用,请从

下载Apache。我不认为这是因为OpenSSL。要解决此问题,请尝试以下操作:

这将清除以前完成的所有编译,因此可能会消除问题

make clean

如果不起作用,请从下载Apache。您是否能够解决问题?我也有同样的问题,一直没能解决out@bio_sprite看看我的答案:)也许它能解决它。或者,从另一个镜像下载。您是否能够解决问题?我也有同样的问题,一直没能解决out@bio_sprite看看我的答案:)也许它能解决它。或者,从另一个镜像下载。