https://www.tunetheweb.com/performance/http2/
我的openssl版本:
# openssl versionOpenSSL 1.1.0f 25 May 2017
安装最新的apr-util和apache时(httpd-2.4.27)
make命令发生以下错误
在apr-util文件夹中:
# makemake[1]: Entering directory `/usr/local/src/apr-util-1.6.0'/bin/sh /usr/local/apr/build-1/libtool --silent --mode=compile gcc -g -O2 -pthread -DHAVE_CONfig_H -DliNUX -D_REENTRANT -D_GNU_SOURCE -I/usr/local/src/apr-util-1.6.0/include -I/usr/local/src/apr-util-1.6.0/include/private -I/usr/local/apr/include/apr-1 -o xml/apr_xml.lo -c xml/apr_xml.c && touch xml/apr_xml.loxml/apr_xml.c:35:19: Fatal error: expat.h: No such file or directory #include <expat.h> ^compilation terminated.make[1]: *** [xml/apr_xml.lo] Error 1make[1]: Leaving directory `/usr/local/src/apr-util-1.6.0'make: *** [all-recursive] Error 1
在httpd文件夹中:
#makeMaking all in srclibmake[1]: Entering directory `/usr/local/src/httpd-2.4.27/srclib'Making all in aprmake[2]: Entering directory `/usr/local/src/httpd-2.4.27/srclib/apr'make[3]: Entering directory `/usr/local/src/httpd-2.4.27/srclib/apr'make[3]: nothing to be done for `local-all'.make[3]: Leaving directory `/usr/local/src/httpd-2.4.27/srclib/apr'make[2]: Leaving directory `/usr/local/src/httpd-2.4.27/srclib/apr'Making all in apr-utilmake[2]: Entering directory `/usr/local/src/httpd-2.4.27/srclib/apr-util'make[3]: Entering directory `/usr/local/src/httpd-2.4.27/srclib/apr-util'/bin/sh /usr/local/src/httpd-2.4.27/srclib/apr/libtool --silent --mode=compile gcc -g -O2 -pthread -DHAVE_CONfig_H -DliNUX -D_REENTRANT -D_GNU_SOURCE -I/usr/local/src/httpd-2.4.27/srclib/apr-util/include -I/usr/local/src/httpd-2.4.27/srclib/apr-util/include/private -I/usr/local/src/httpd-2.4.27/srclib/apr/include -o xml/apr_xml.lo -c xml/apr_xml.c && touch xml/apr_xml.loxml/apr_xml.c:35:19: Fatal error: expat.h: No such file or directory #include <expat.h> ^compilation terminated.make[3]: *** [xml/apr_xml.lo] Error 1make[3]: Leaving directory `/usr/local/src/httpd-2.4.27/srclib/apr-util'make[2]: *** [all-recursive] Error 1make[2]: Leaving directory `/usr/local/src/httpd-2.4.27/srclib/apr-util'make[1]: *** [all-recursive] Error 1make[1]: Leaving directory `/usr/local/src/httpd-2.4.27/srclib'make: *** [all-recursive] Error 1解决方法 我建议从 https://codeit.guru/en_US/2017/10/apache-httpd-2-4-28-built-against-openssl-1-0-2l-with-http2-for-red-hat-enterprise-linux-and-centos/开始安装随时可用的软件包
或者,您可以从Fedora或CodeIT提供的SRPM重新编译它(与更改的默认值和openssl路径相同):
rpmbuild -ba ~/rpmbuild/Specs/httpd.spec总结
以上是内存溢出为你收集整理的linux – 如何在centos 7中启用apache-http / 2?全部内容,希望文章能够帮你解决linux – 如何在centos 7中启用apache-http / 2?所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)