今天在使用 conda activate 环境的时候,出现了如下报错:
$ conda activate rnaseq
ERROR: This cross-compiler package contains no program .../anaconda3/envs/rnaseq/bin/x86_64-conda_cos6-linux-gnu-addr2line
ERROR: activate-binutils_linux-64.sh failed, see above for details
ERROR: This cross-compiler package contains no program .../anaconda3/envs/rnaseq/bin/x86_64-conda_cos6-linux-gnu-cc
ERROR: activate-gcc_linux-64.sh failed, see above for details
ERROR: This cross-compiler package contains no program .../anaconda3/envs/rnaseq/bin/x86_64-conda_cos6-linux-gnu-gfortran
ERROR: This cross-compiler package contains no program .../anaconda3/envs/rnaseq/bin/x86_64-conda_cos6-linux-gnu-c++
ERROR: activate-gxx_linux-64.sh failed, see above for details
在 github 上有个同样的问题,链接为:https://github.com/conda/conda/issues/6600,我在其中找到了答案。
$ conda remove gcc_linux-64 gcc_impl_linux-64 binutils_linux-64 binutils_impl_linux-64
虽然不清楚报错原因,但问题好像是解决了。
在这个问题下面还有些评论,他们在使用上述命令时,出现了如下报错:
ERROR: This cross-compiler package contains no program .../miniconda3/envs/busco4_env/bin/x86_64-conda_cos6-linux-gnu-gfortran
同样幸运的是,下面有相应的命令可以解决:
$ chmod -R u+x .../miniconda3/envs/busco4_env/bin