Não é possível adicionar o módulo nginx - requer zlib

1

Estou tentando adicionar o módulo nginx mp4 e upload via

./configure --add-module=/tmp/nginx-upload-module-2.2.0

mas isso dá (abaixo) erro . O que eu tentei, não consegui instalar o zlib . Eu preciso de ajuda ..

./configure: error: the HTTP gzip module requires the zlib library.
You can either disable the module by using --without-http_gzip_module
option, or install the zlib library into the system, or build the zlib library
statically from the source with nginx by using --with-zlib=<path> option.

quando tento instalar zlib via

sudo apt-get install zlib1g-dev e, desta vez, apresenta o erro .

Package zlib1g-dev is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

Editar: versão do Ubuntu:

Distributor ID: Ubuntu
Description:    Ubuntu 16.04.3 LTS
Release:        16.04
Codename:       xenial
    
por fthopkins 25.11.2017 / 15:52

1 resposta

-2

Um pouco atrasado embora. Eu acho que você precisará instalar todas as dependências com o pacote. Tente executar:

apt-get install libpcre3 libpcre3-dev zlib1g zlib1g-dev libssl-dev
    
por Akshit Dhar 06.10.2018 / 15:25