找不到 ZLIB(缺少:ZLIB_LIBRARY)(找到版本“1.2.11”)

jki*_*sis 5 zlib ubuntu-18.04

我试图安装该工具shmutzi在Ubuntu 18.04.2。我已经从 git 克隆它,安装了所有依赖项(除了 zlib,apt install 没有找到,我知道它包含在 zlib1g-dev 中)。

当我尝试使用make该工具时,我得到了这个:

$ make
make -C src/
make[1]: Entering directory '/home/nextgen/src/schmutzi/src'
cd ../lib/bamtools// && mkdir -p build/  && cd build/ && cmake .. && make && cd ../../../src/
-- Checking for one of the modules 'jsoncpp>=1'
Did NOT find system JsonCpp, instead using bundled version
CMake Error at /usr/share/cmake-3.10/Modules/FindPackageHandleStandardArgs.cmake:137 (message):
Could NOT find ZLIB (missing: ZLIB_LIBRARY) (found version "1.2.11")
Call Stack (most recent call first):
/usr/share/cmake-3.10/Modules/FindPackageHandleStandardArgs.cmake:378 (_FPHSA_FAILURE_MESSAGE)
/usr/share/cmake-3.10/Modules/FindZLIB.cmake:112 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
src/api/CMakeLists.txt:34 (find_package)


-- Configuring incomplete, errors occurred!
See also "/home/nextgen/src/schmutzi/lib/bamtools/build/CMakeFiles/CMakeOutput.log".
See also "/home/nextgen/src/schmutzi/lib/bamtools/build/CMakeFiles/CMakeError.log".
Makefile:27: recipe for target 
'../lib/bamtools//build/src/api/libbamtools.a' failed
make[1]: *** [../lib/bamtools//build/src/api/libbamtools.a] Error 1
make[1]: Leaving directory '/home/nextgen/src/schmutzi/src'
Makefile:16: recipe for target 'src/endoCaller' failed
make: *** [src/endoCaller] Error 2
Run Code Online (Sandbox Code Playgroud)

我尝试删除并重新安装 zlib。Zlib.h 在 /usr/include/ 中。它甚至说找到了一个版本。我能做些什么来解决这个问题?

小智 -3

您可以zlib通过安装sudo apt install zlib1g-dev