linux - x86_64-conda_cos6-linux-gnu-gcc : not found

标签 linux conda miniconda cpanm

我无法在 conda 中使用 cpanm 安装模块。

cpanm --force Math::CDF                                 
--> Working on Math::CDF
Fetching http://www.cpan.org/authors/id/C/CA/CALLAHAN/Math-CDF-0.1.tar.gz ... OK
Configuring Math-CDF-0.1 ... OK
Building and testing Math-CDF-0.1 ... FAIL
! Installing Math::CDF failed. See /home/juan/.cpanm/work/1552930475.22685/build.log for details. Retry with --force to force install it.

错误是

/bin/sh: 1: /tmp/build/80754af9/perl_1527832170752/_build_env/bin/x86_64-conda_cos6-linux-gnu-gcc: not found

但是 x86_64-conda_cos6-linux-gnu-gcc 在路径中

(bio) ➜  ~ which x86_64-conda_cos6-linux-gnu-gcc
/home/juan/miniconda3/envs/bio/bin/x86_64-conda_cos6-linux-gnu-gcc

cpanm 或 conda 可能有什么问题?

我在 Ubuntu 18.04 中使用 miniconda

最佳答案

我也遇到了这个问题。不幸的是,@tlsmy 的答案并没有起作用,而是设定了思考过程。 /tmp/build/80754af9/perl_1527832170752/_build_env/bin/ 路径确实看起来很奇怪,我们不希望 gcc 二进制文件放在这里。 根据这个discussion问题在于 Conda-forge 上的默认 perl 版本具有编译器的硬编码路径。 @luvaul hack 是使用其他健康的 perl 版本,如下所示: conda install -c conda-forge perl=5.26.2=h470a237_0 在我的情况下,它解决了这个问题。不幸的是,至少一年过去了,这个问题仍然没有得到解决。

关于linux - x86_64-conda_cos6-linux-gnu-gcc : not found,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55227065/

相关文章:

linux - 我可以在虚拟机中加载 "developer image"吗?

python - 为什么 "conda"和 "conda-env"包无法克隆?

python - conda install python=3.6 UnsatisfiableError

python - 如何在 Anaconda 中拥有两个不同的环境? (Python 3.7,一种 32 位,一种 64 位)

ubuntu - 如何在 Google Colab 中安装 Anaconda

r - R 中的 Spawn 子进程

c++ - 在嵌入式 Linux 上使用 C++ Std Lib 时出现异常段错误

linux - 这个 Cron 的时间表是什么?

python - 无法在 Pycharm 中创建或导入现有的 conda 项目

python - 在新的 anaconda3 安装中无法识别 jupyter notebook