/usr/local/arm/5.4.0/usr/bin/../libexec/gcc/arm-none-linux-gnueabi/5.4.0/cc1: error while loading shared libraries: libmpc.so.3: cannot open shared object file: No such file or directory

arm-linux-gcc a.c报错/usr/local/arm/5.4.0/usr/bin/../libexec/gcc/arm-none-linux-gnueabi/5.4.0/cc1: error while loading shared libraries: libmpc.so.3: cannot open shared object file: No such file or directory

安装arm-linux-gcc a.c没安装g++

解决方法:

重新安装g++:

apt update

apt install g++

这样重新编译即可

posted @ 2023-07-28 19:27  败人两字非傲即惰  阅读(241)  评论(0编辑  收藏  举报