【问题标题】:Could NOT find ZLIB (missing: ZLIB_LIBRARY) (found version "1.2.11")找不到 ZLIB(缺少:ZLIB_LIBRARY)(找到版本“1.2.11”)
【发布时间】:2019-02-28 10:40:21
【问题描述】:

我正在尝试在 Ubuntu 18.04.2 上安装工具 shmutzi。我已经从 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

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

【问题讨论】:

    标签: zlib ubuntu-18.04


    【解决方案1】:

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

    【讨论】:

      最近更新 更多