Que biblioteca precisa ser instalada para o sinalizador de compilação -lz

1

Eu tenho o seguinte erro depois de digitar o comando:

pip install -r requirements.txt

A mensagem de erro é a seguinte:

...
x86_64-linux-gnu-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -Wl,-z,relro -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -Wdate-time -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security -Wl,-Bsymbolic-functions -Wl,-z,relro -Wdate-time -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security build/temp.linux-x86_64-2.7/src/lxml/lxml.etree.o -lxslt -lexslt -lxml2 -lz -lm -o build/lib.linux-x86_64-2.7/lxml/etree.so
/usr/bin/ld: cannot find -lz
collect2: error: ld returned 1 exit status
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1


----------------------------------------
Command "/home/<user_id>/.../<virtualenv_name>/bin/python2 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-SBDLKx/lxml/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-OSju9J-record/install-record.txt --single-version-externally-managed --compile --install-headers /home/<user_id>/.../<virtualenv_name>/include/site/python2.7/lxml" failed with error code 1 in /tmp/pip-build-SBDLKx/lxml/

Qual biblioteca ausente precisa ser instalada (por -lz ) no Ubuntu?

    
por nathanielng 01.06.2017 / 11:32

1 resposta

3

Para uma biblioteca vinculada a -lfoo , procure por libfoo.so e pacotes que a fornecem. libz.so é fornecido por zlib1g-dev .

    
por muru 01.06.2017 / 11:36