他的回复:
回复:氟西汀 发表于 2022-6-12 08:08 您好 麻烦您上传更加详细的信息 我们好定位问题华为云服务器, 原为ubuntu 18.04, 改刷欧拉2.5[hongsun@ecs-9b50-hong ~]$ uname -aLinux ecs-9b50-hong 3.10.0-862.14.1.5.h654.eulerosv2r7.x86_64 #1 SMP Fri Dec 17 18:05:15 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux[hongsun@ecs-9b50-hong ~]$ [hongsun@ecs-9b50-hong ~]$ sudo yum upgrade已加载插件:fastestmirrorLoading mirror speeds from cached hostfileNo packages marked for update[hongsun@ecs-9b50-hong ~]$ [hongsun@ecs-9b50-hong ~]$ sudo yum update已加载插件:fastestmirrorLoading mirror speeds from cached hostfileNo packages marked for update[hongsun@ecs-9b50-hong ~]$ [hongsun@ecs-9b50-hong ~]$ echo $PATH/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/home/hongsun/.local/bin:/home/hongsun/bin[hongsun@ecs-9b50-hong ~]$ [hongsun@ecs-9b50-hong ~]$ cat a.cpp#include #include int main(int argc, char** argv){ return 0;}[hongsun@ecs-9b50-hong ~]$ [hongsun@ecs-9b50-hong ~]$ gcc a.cppgcc: error trying to exec 'cc1plus': execvp: 没有那个文件或目录[hongsun@ecs-9b50-hong ~]$ [hongsun@ecs-9b50-hong ~]$ gcc -v使用内建 specs。COLLECT_GCC=gccCOLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-Huawei-linux/4.8.5/lto-wrapper目标:x86_64-Huawei-linux配置为:../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-bootstrap --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-gnu-unique-object --enable-linker-build-id --with-linker-hash-style=gnu --enable-languages=c,c++,objc,obj-c++,java,fortran,ada,go,lto --enable-plugin --enable-initfini-array --disable-libgcj --with-isl=/home/abuild/rpmbuild/BUILD/gcc-4.8.5-20150702/obj-x86_64-Huawei-linux/isl-install --with-cloog=/home/abuild/rpmbuild/BUILD/gcc-4.8.5-20150702/obj-x86_64-Huawei-linux/cloog-install --enable-gnu-indirect-function --with-stage1-ldflags=' -Wl,-z,relro,-z,now -pie' --with-boot-ldflags=' -Wl,-z,relro,-z,now -pie' --with-tune=generic --with-arch_32=x86-64 --build=x86_64-Huawei-linux线程模型:posixgcc 版本 4.8.5 20150623 (EulerOS 4.8.5-28) (GCC)