尝试链接CXX可执行文件时,Kallisto构建不断失败 [英] Kallisto build keeps failing when attempting to link CXX executable

查看:63
本文介绍了尝试链接CXX可执行文件时,Kallisto构建不断失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

对于一般的编码,我是个超级新手,因此对任何缺乏清晰度或简洁性都深表歉意.我试图为Kallisto构建一个可用于RNA序列比对的构建,但我陷入了制造"的困境.阶段.稍加摆弄并下载了CXX编译器后,该cmake成功了,但是make继续退出,并显示错误状态:

I'm super new to coding in general so apologies for any lack of clarity or conciseness. I'm attempting to make a build for Kallisto to use in RNA sequence alignment and I'm getting stuck at the "make" stage. The cmake was successful after a little fiddling and downloading a CXX compiler, but the make keep exiting with an error status:

[ 27%] Built target htslib
[ 93%] Built target kallisto_core
[ 96%] Linking CXX executable kallisto
/home/wahanson/miniconda3/bin/../lib/gcc/x86_64-conda_cos6-linux-gnu/7.3.0/../../../../x86_64-conda_cos6-linux-gnu/bin/ld: cannot find -lz
collect2: error: ld returned 1 exit status
make[2]: *** [src/CMakeFiles/kallisto.dir/build.make:88: src/kallisto] Error 1
make[1]: *** [CMakeFiles/Makefile2:130: src/CMakeFiles/kallisto.dir/all] Error 2

主要错误似乎是找不到-lz".导致随后的错误.据我了解,这是指zlib1g-dev和/或无法在路径中找到它.我已经通过conda安装了zlib1g-dev,并确保更新无济于事.如果有人能让我知道我所缺少的东西或下一个可以看的地方,将不胜感激.谢谢!

the main error appears to be "cannot find -lz" causing the subsequent errors. From what I understand, this is referencing zlib1g-dev and/or an inability to find it within the path. I have installed zlib1g-dev through conda and made sure to update to no avail. If anyone could let me know what I'm missing or a next place to look it'd be much appreciated. Thanks!

推荐答案

该错误似乎是环境中未安装 zlib 程序包.幸运的是,我最近建立了Kallisto,可以共享我一直在使用的Conda环境,我已经在 osx-64 linux-64 平台上进行了测试:

The error looks like the zlib package was not installed in the env. Fortunately, I've recently built kallisto and can share the Conda environment I have been using, which I've tested on both osx-64 and linux-64 platforms:

kallisto-build.yaml

name: kallisto-build
channels:
  - bioconda
  - r
  - conda-forge
  - defaults
dependencies:
  - autoconf
  - automake
  - hdf5
  - cmake
  - cxx-compiler
  - zlib

创建然后激活此环境:

conda env create -f kallisto-build.yaml
conda activate kallisto-build

然后按照 kallisto说明从源代码进行构建

then follow the kallisto instructions for building from source.

这篇关于尝试链接CXX可执行文件时,Kallisto构建不断失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆