$ gcc -v
提示gcc版本还是4.8.5,升级到13.1.0
去别的环境下面连接13.1.0的gcc到本环境bin目录下
ln -s /home/lx_sky6/software/miniconda3/envs/py_36/libexec/gcc/x86_64-conda-linux-gnu/13.1.0/gcc .
conda install -c conda-forge gcc
gcc -v
Supported LTO compression algorithms: zlib
gcc version 13.1.0 (conda-forge gcc 13.1.0-0)
安装maker
gcc: fatal error: cannot execute 'cc1': execvp: No such file or directory
compilation terminated.
make: *** [Makefile:335: MPI.o] Error 1
网上说cmake的时候报错:cc: fatal error: cannot execute ‘cc1’: execvp: No such file or directory,缺少cc1得文件
‘’which cc1‘’ 或者 ‘’locate cc1‘’ 或者 ‘’find / -name cc1‘’ 先去找文件,发现确实没有这个文件
conda install -c conda-forge gxx
找不到libgcc_s.so.1
/home/lx_sky6/yt/soft/miniconda3/envs/maker/bin/../lib/gcc/x86_64-conda-linux-gnu/10.4.0/../../../../x86_64-conda-linux-gnu/bin/ld: cannot find libgcc_s.so.1: 没有那个文件或目录
collect2: error: ld returned 1 exit status
make: *** [Makefile:477: blib/arch/auto/Parallel/Application/MPI/MPI.so] Error 1
去别的环境下面软连接一个
ln -s /home/lx_sky6/software/miniconda3/envs/py_36/lib/libgcc_s.so.1 .
网友评论