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



i不能在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中使用Miniconda 18.04

我也遇到了这个问题。不幸的是,@tlsmy的答案不起作用,而是设置思维过程。路径/tmp/build/80754af9/perl_1527832170752/_build_env/bin/确实看起来很奇怪,我们不会指望GCC二进制文件放置在此处。根据此讨论,问题在于perl的默认版本在conda-forge上具有编译器的硬编码路径。@luvaul hack是使用其他健康的perl版本: conda install -c conda-forge perl=5.26.2=h470a237_0在我的情况下,它解决了这个问题。不幸的是,这已经至少一年了,而且这个问题仍然无法解决。

cpancpanm在引擎盖下调用)在尊重conda环境时并不那么聪明。

打开~/.cpan/CPAN/MyConfig.pm。将'make_arg' => q[],行更改为'make_arg' => q[CC=gcc],应该做到。

最新更新