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

问题描述 投票:0回答:1

我正在尝试在Ubuntu 18.04.2上安装工具shmutzi。我从git克隆了它,安装了所有的依赖项(除了zlib,apt安装找不到,我理解它包含在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个回答
-2
投票

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

© www.soinside.com 2019 - 2024. All rights reserved.