我无法在 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/