在Apache 2.4.33中包含mod_brotli支持时出现以下问题。
我编译了brotli,它编译得很好,但是当我在apache配置脚本中使用--enable-brotli
和--with-brotli=/apps/httpdx64/brotli
启用它时。当Apache编译时,我得到下面的错误消息:
/apps/httpdx64/apr/build-1/libtool --silent --mode=link gcc -std=gnu99 -I/usr/include/libxml2 -I/apps/httpdx64/brotli/include -g -O2 -pthread -DSSL_EXPERIMENTAL_ENGINE -L/apps/httpdx64/apache24/openssl/lib -L/usr/lib64 -L/apps/httpdx64/expat/lib -o mod_brotli.la -rpath /apps/httpdx64/apache24/modules -module -avoid-version mod_brotli.lo -L/apps/httpdx64/brotli/lib -lbrotlienc -lbrotlicommon -export-symbols-regex brotli_module
/usr/bin/ld: cannot find -lbrotlienc
collect2: ld returned 1 exit status
make[3]: *** [mod_brotli.la] Error 1
make[3]: Leaving directory `/apps/httpdx64/httpd-2.4.33/modules/filters'
make[2]: *** [install-recursive] Error 1
make[2]: Leaving directory `/apps/httpdx64/httpd-2.4.33/modules/filters'
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory `/apps/httpdx64/httpd-2.4.33/modules'
make: *** [install-recursive] Error 1
请告诉我如何修复这个错误。
1条答案
按热度按时间ffdz8vbo1#
不知道为什么你有brotli路径设置为您的httpd文件夹(
--with-brotli=/apps/httpdx64/brotli
)?我这样编译它(作为I explain here):
谢谢,巴里