conda를 사용하여 최신 버전의 GCC 11.2V를 설치했는데,conda 설치 -c conda-forge내 Linux 서버(Centos7)에 있는 gcc"입니다. 내 서버에 로그인하려고 하면 로그인한 후 뭔가 이상한 것이 표시됩니다(아래 텍스트 참조).
scp 명령을 사용하여 서버와 로컬 컴퓨터 간에 파일을 전송할 수 없습니다.
나는 무엇이 잘못되었는지 이해하지 못합니다. 이 오류를 어떻게 해결할 수 있나요? 아나콘다 패키지를 제거하면 문제가 해결됩니까?
제안해 주세요.
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
더 이상 오류나 경고가 발생하지 않습니다. 이것이 도움이 되기를 바랍니다.