我使用 conda 安装了最新版本的 GCC 11.2V,conda 安装-c conda-forgegcc”在我的linux服务器(Centos7)中。当我尝试登录我的服务器后,登录后它显示一些奇怪的东西(看下面的文本)。
我无法使用 scp 命令在服务器和本地计算机之间传输文件。
我不明白出了什么问题。我该如何解决这个错误?如果我删除 anaconda 软件包,问题会得到解决吗?
请提出建议。
INFO: activate-binutils_linux-64.sh made the following environmental
changes:
+ADDR2LINE=/home/sun/anaconda3/bin/x86_64-conda_cos6-linux-gnu-addr2line
+AR=/home/sun/anaconda3/bin/x86_64-conda_cos6-linux-gnu-ar
+AS=/home/sun/anaconda3/bin/x86_64-conda_cos6-linux-gnu-as
+CXXFILT=/home/sun/anaconda3/bin/x86_64-conda_cos6-linux-gnu-c++filt
+ELFEDIT=/home/sun/anaconda3/bin/x86_64-conda_cos6-linux-gnu-elfedit
+GPROF=/home/sun/anaconda3/bin/x86_64-conda_cos6-linux-gnu-gprof
+HOST=x86_64-conda_cos6-linux-gnu
+LD_GOLD=/home/sun/anaconda3/bin/x86_64-conda_cos6-linux-gnu-ld.gold
+LD=/home/sun/anaconda3/bin/x86_64-conda_cos6-linux-gnu-ld
+NM=/home/sun/anaconda3/bin/x86_64-conda_cos6-linux-gnu-nm
+OBJCOPY=/home/sun/anaconda3/bin/x86_64-conda_cos6-linux-gnu-objcopy
+OBJDUMP=/home/sun/anaconda3/bin/x86_64-conda_cos6-linux-gnu-objdump
+RANLIB=/home/sun/anaconda3/bin/x86_64-conda_cos6-linux-gnu-ranlib
+READELF=/home/sun/anaconda3/bin/x86_64-conda_cos6-linux-gnu-readelf
+SIZE=/home/sun/anaconda3/bin/x86_64-conda_cos6-linux-gnu-size
+STRINGS=/home/sun/anaconda3/bin/x86_64-conda_cos6-linux-gnu-strings
+STRIP=/home/sun/anaconda3/bin/x86_64-conda_cos6-linux-gnu-strip *ERROR*: This cross-compiler package contains no program
/home/sun/anaconda3/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
/home/sun/anaconda3/bin/x86_64-conda_cos6-linux-gnu-cc *ERROR:*
deactivate-gcc_linux-64.sh failed, see above for details INFO:
deactivate-binutils_linux-64.sh made the following environmental
changes:
-ADDR2LINE=/home/sun/anaconda3/bin/x86_64-conda_cos6-linux-gnu-addr2line
-AR=/home/sun/anaconda3/bin/x86_64-conda_cos6-linux-gnu-ar
-AS=/home/sun/anaconda3/bin/x86_64-conda_cos6-linux-gnu-as
-CXXFILT=/home/sun/anaconda3/bin/x86_64-conda_cos6-linux-gnu-c++filt
-ELFEDIT=/home/sun/anaconda3/bin/x86_64-conda_cos6-linux-gnu-elfedit
-GPROF=/home/sun/anaconda3/bin/x86_64-conda_cos6-linux-gnu-gprof
-HOST=x86_64-conda_cos6-linux-gnu
-LD_GOLD=/home/sun/anaconda3/bin/x86_64-conda_cos6-linux-gnu-ld.gold
-LD=/home/sun/anaconda3/bin/x86_64-conda_cos6-linux-gnu-ld
-NM=/home/sun/anaconda3/bin/x86_64-conda_cos6-linux-gnu-nm
-OBJCOPY=/home/sun/anaconda3/bin/x86_64-conda_cos6-linux-gnu-objcopy
-OBJDUMP=/home/sun/anaconda3/bin/x86_64-conda_cos6-linux-gnu-objdump
-RANLIB=/home/sun/anaconda3/bin/x86_64-conda_cos6-linux-gnu-ranlib
-READELF=/home/sun/anaconda3/bin/x86_64-conda_cos6-linux-gnu-readelf
-SIZE=/home/sun/anaconda3/bin/x86_64-conda_cos6-linux-gnu-size
-STRINGS=/home/sun/anaconda3/bin/x86_64-conda_cos6-linux-gnu-strings
-STRIP=/home/sun/anaconda3/bin/x86_64-conda_cos6-linux-gnu-strip INFO: activate-binutils_linux-64.sh made the following environmental
changes:
+ADDR2LINE=/home/sun/anaconda3/bin/x86_64-conda_cos6-linux-gnu-addr2line
+AR=/home/sun/anaconda3/bin/x86_64-conda_cos6-linux-gnu-ar
+AS=/home/sun/anaconda3/bin/x86_64-conda_cos6-linux-gnu-as
+CXXFILT=/home/sun/anaconda3/bin/x86_64-conda_cos6-linux-gnu-c++filt
+ELFEDIT=/home/sun/anaconda3/bin/x86_64-conda_cos6-linux-gnu-elfedit
+GPROF=/home/sun/anaconda3/bin/x86_64-conda_cos6-linux-gnu-gprof
+HOST=x86_64-conda_cos6-linux-gnu
+LD_GOLD=/home/sun/anaconda3/bin/x86_64-conda_cos6-linux-gnu-ld.gold
+LD=/home/sun/anaconda3/bin/x86_64-conda_cos6-linux-gnu-ld
+NM=/home/sun/anaconda3/bin/x86_64-conda_cos6-linux-gnu-nm
+OBJCOPY=/home/sun/anaconda3/bin/x86_64-conda_cos6-linux-gnu-objcopy
+OBJDUMP=/home/sun/anaconda3/bin/x86_64-conda_cos6-linux-gnu-objdump
+RANLIB=/home/sun/anaconda3/bin/x86_64-conda_cos6-linux-gnu-ranlib
+READELF=/home/sun/anaconda3/bin/x86_64-conda_cos6-linux-gnu-readelf
+SIZE=/home/sun/anaconda3/bin/x86_64-conda_cos6-linux-gnu-size
+STRINGS=/home/sun/anaconda3/bin/x86_64-conda_cos6-linux-gnu-strings
+STRIP=/home/sun/anaconda3/bin/x86_64-conda_cos6-linux-gnu-strip *ERROR:* This cross-compiler package contains no program
/home/sun/anaconda3/bin/x86_64-conda_cos6-linux-gnu-cc *ERROR:*
activate-gcc_linux-64.sh failed, see above for details
答案1
也许有点太晚了。但我遇到了类似的问题..这可能是一个错误。
我可以这样解决它:删除gcc
(gxx
如果你当前的环境中有它)
conda remove gcc
然后安装
conda install -c anaconda gcc_linux-64 gxx_linux-64
或者
conda install -c conda-forge mamba
mamba install -c anaconda gcc_linux-64 gxx_linux-64
我强烈推荐,mamba
因为它超级快!
对于这样的事情:
*ERROR:* This cross-compiler package contains no program
/home/sun/anaconda3/bin/x86_64-conda_cos6-linux-gnu-cc
我执行了以下操作(肮脏的解决方案):检查环境中缺少文件的路径,例如my_env
which x86_64-conda_cos6-linux-gnu-cc
..就我而言,给出了:./miniconda3/envs/my_env/bin/x86_64-conda_cos6-linux-gnu-cc
现在将该文件复制到./miniconda3/bin/
scp ./miniconda3/envs/my_env/bin/x86_64-conda_cos6-linux-gnu-cc ./miniconda3/bin/
conda deactivate
conda activate my_env
不再有错误或警告,希望这有帮助。