zlib.h

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

我正在尝试编译一个程序 RabbitQCPlus,根据其 github 说明:https://github.com/RabbitBio/RabbitQCPlus 它需要我已经安装的 gcc 和 zlib 。 (我在服务器上工作,没有 root 或 sudo 权限,所有安装都使用 conda)。

当我运行

make -j4
时,它给出以下错误:

    The detected gcc version is 11.2.0 

Based on the detected gcc version and cpuflags, it was decided to use the avx2 instruction set to speed up the program

g++ -c src/options.cpp -o obj/options.o -DVec256 -DTHRUST_DEVICE_SYSTEM=THRUST_DEVICE_SYSTEM_OMP -fconstexpr-ops-limit=99000100 -Wall -Wextra -Wno-terminate -Wno-class-memaccess -DNDUBUG -std=c++17 -I./ -I./common -I./include -I./include/huffman -march=native -I./dependencies/thrust-1.17.0 -g -O3 -w -fopenmp
g++ -c src/main_correct_cpu.cpp -o obj/main_correct_cpu.o -DVec256 -DTHRUST_DEVICE_SYSTEM=THRUST_DEVICE_SYSTEM_OMP -fconstexpr-ops-limit=99000100 -Wall -Wextra -Wno-terminate -Wno-class-memaccess -DNDUBUG -std=c++17 -I./ -I./common -I./include -I./include/huffman -march=native -I./dependencies/thrust-1.17.0 -g -O3 -w -fopenmp
g++ -c src/correctionresultoutput.cpp -o obj/correctionresultoutput.o -DVec256 -DTHRUST_DEVICE_SYSTEM=THRUST_DEVICE_SYSTEM_OMP -fconstexpr-ops-limit=99000100 -Wall -Wextra -Wno-terminate -Wno-class-memaccess -DNDUBUG -std=c++17 -I./ -I./common -I./include -I./include/huffman -march=native -I./dependencies/thrust-1.17.0 -g -O3 -w -fopenmp
g++ -c src/Formater.cpp -o obj/Formater.o -DVec256 -DTHRUST_DEVICE_SYSTEM=THRUST_DEVICE_SYSTEM_OMP -fconstexpr-ops-limit=99000100 -Wall -Wextra -Wno-terminate -Wno-class-memaccess -DNDUBUG -std=c++17 -I./ -I./common -I./include -I./include/huffman -march=native -I./dependencies/thrust-1.17.0 -g -O3 -w -fopenmp
In file included from ./include/kseqpp/kseqpp.hpp:4,
                 from ./include/readlibraryio.hpp:6,
                 from ./include/options.hpp:5,
                 from src/options.cpp:1:
./include/kseqpp/gziphelpers.hpp:4:10: fatal error: zlib.h: No such file or directory
    4 | #include <zlib.h>
      |          ^~~~~~~~
In file included from ./include/kseqpp/kseqpp.hpp:4,
                 from ./include/readlibraryio.hpp:6,
                 from ./include/correctionresultoutput.hpp:6,
                 from src/correctionresultoutput.cpp:1:
./include/kseqpp/gziphelpers.hpp:4:10: fatal error: zlib.h: No such file or directory
    4 | #include <zlib.h>
      |          ^~~~~~~~
compilation terminated.
compilation terminated.
make: *** [obj/options.o] Error 1
make: *** Waiting for unfinished jobs....
make: *** [obj/correctionresultoutput.o] Error 1
In file included from ./include/kseqpp/kseqpp.hpp:4,
                 from ./include/readlibraryio.hpp:6,
                 from ./include/options.hpp:5,
                 from src/main_correct_cpu.cpp:5:
./include/kseqpp/gziphelpers.hpp:4:10: fatal error: zlib.h: No such file or directory
    4 | #include <zlib.h>
      |          ^~~~~~~~
compilation terminated.
make: *** [obj/main_correct_cpu.o] Error 1
In file included from src/FastxStream.h:18,
                 from src/Formater.cpp:6:
src/FileReader.h:13:10: fatal error: zlib.h: No such file or directory
   13 | #include <zlib.h>//support gziped files, functional but inefficient
      |          ^~~~~~~~
compilation terminated.
make: *** [obj/Formater.o] Error 1

我看到它说 zlib.h: 没有这样的文件或目录。我用谷歌搜索,发现我需要安装 zlib devel 库,所以我也这样做了。这些是现在安装的 zlib 程序(来自

conda list
):

zlib                      1.2.13               h5eee18b_0    anaconda
zlib-amzn2-aarch64        1.2.7                         5    anaconda
zlib-devel-amzn2-aarch64  1.2.7                         5    anaconda

错误仍未解决。任何帮助表示赞赏。 我是 Linux 新手,所以如果您的答案对愚蠢的人友好,我将不胜感激。

linux makefile compiler-errors path zlib
© www.soinside.com 2019 - 2024. All rights reserved.