Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

recompiling nginx (1.11.3) for newest Brotli failed (ngx_brotli filter module requires Brotli library) #32

Closed
Sunka opened this issue Aug 21, 2016 · 1 comment

Comments

@Sunka
Copy link

Sunka commented Aug 21, 2016

`configuring additional modules
adding module in ../nginx-module-vts

  • ngx_http_vhost_traffic_status_module was configured
    adding module in ../ngx_cache_purge-2.3
  • ngx_http_cache_purge_module was configured
    adding module in ../ngx_devel_kit-0.3.0
  • ngx_devel_kit was configured
    adding module in ../set-misc-nginx-module-0.31
    found ngx_devel_kit for ngx_set_misc; looks good.
  • ngx_http_set_misc_module was configured
    adding module in ../echo-nginx-module-0.60
  • ngx_http_echo_module was configured
    adding module in ../redis2-nginx-module-0.13
  • ngx_http_redis2_module was configured
    adding module in ../ngx_http_redis-0.3.7
  • ngx_http_redis_module was configured
    adding module in ../memc-nginx-module-0.17
  • ngx_http_memc_module was configured
    adding module in ../srcache-nginx-module-0.31
  • ngx_http_srcache_filter_module was configured
    adding module in ../headers-more-nginx-module-0.31
  • ngx_http_headers_more_filter_module was configured
    configuring additional dynamic modules
    adding module in ../ngx_brotli
    checking for Brotli library ... not found
    checking for Brotli library in /usr/local/ ... not found
    checking for Brotli library in /usr/pkg/ ... not found
    checking for Brotli library in /opt/local/ ... not found
    ./configure: error: ngx_brotli filter module requires Brotli library.

Sun Aug 21 22:43:22 CEST 2016
Error: 1, Nginx configure failed

Total Nginx Upgrade Time: 162.504159814 seconds`

# nginx -V nginx version: nginx/1.11.3 built by clang 3.4.2 (tags/RELEASE_34/dot2-final) built with LibreSSL 2.4.2 TLS SNI support enabled configure arguments: --with-ld-opt='-lrt -ljemalloc -Wl,-z,relro -Wl,-rpath,/usr/local/lib' --with-cc-opt='-m64 -mtune=native -mfpmath=sse -g -O3 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wno-sign-compare -Wno-string-plus-int -Wno-deprecated-declarations -Wno-unused-parameter -Wno-unused-const-variable -Wno-conditional-uninitialized -Wno-mismatched-tags -Wno-c++11-extensions -Wno-sometimes-uninitialized -Wno-parentheses-equality -Wno-tautological-compare -Wno-self-assign -Wno-deprecated-register -Wno-deprecated -Wno-invalid-source-encoding -Wno-pointer-sign -Wno-parentheses -Wno-enum-conversion -Wno-c++11-compat-deprecated-writable-strings -Wno-write-strings' --sbin-path=/usr/local/sbin/nginx --conf-path=/usr/local/nginx/conf/nginx.conf --with-http_stub_status_module --with-http_secure_link_module --with-openssl-opt=enable-tlsext --add-module=../nginx-module-vts --with-libatomic --with-threads --with-stream=dynamic --with-stream_ssl_module --with-http_gzip_static_module --add-dynamic-module=../ngx_brotli --with-http_sub_module --with-http_addition_module --with-http_image_filter_module=dynamic --with-http_geoip_module --with-stream_geoip_module --with-http_realip_module --add-dynamic-module=../ngx-fancyindex-0.4.0 --add-module=../ngx_cache_purge-2.3 --add-module=../ngx_devel_kit-0.3.0 --add-module=../set-misc-nginx-module-0.30 --add-module=../echo-nginx-module-0.59 --add-module=../redis2-nginx-module-0.13 --add-module=../ngx_http_redis-0.3.7 --add-module=../memc-nginx-module-0.17 --add-module=../srcache-nginx-module-0.31 --add-module=../headers-more-nginx-module-0.30 --with-pcre=../pcre-8.39 --with-pcre-jit --with-http_ssl_module --with-http_v2_module --with-openssl=../libressl-2.4.2

@Sunka
Copy link
Author

Sunka commented Aug 21, 2016

cd /svr-setup
rm -rf /svr-setup/libbrotli
And then recompile nginx is all that I needed.
Case closed :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant