cc1: error while loading shared libraries: libmpc.so.2:

find /usr/ -name libmpc.so
ls -l /usr/lib/i386-linux-gnu/libmpc.so
lrwxrwxrwx 1 root root 15 Jan 23  2018 /usr/lib/i386-linux-gnu/libmpc.so -> libmpc.so.3.1.0
ldd /opt/gnutools/arc-4.8-amlogic-20130904-r2/bin/../libexec/gcc/arc-elf32/4.8.0/cc1                 
        linux-vdso.so.1 (0x00007ffe157a8000)
        libmpc.so.2 => not found
        libmpfr.so.4 => not found
        libgmp.so.10 => /usr/lib/x86_64-linux-gnu/libgmp.so.10 (0x00007f4a85e3c000)
        libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f4a85c38000)
        libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f4a85847000)
        /lib64/ld-linux-x86-64.so.2 (0x00007f4a862d5000)
        libmpfr.so.6 => /usr/lib/x86_64-linux-gnu/libmpfr.so.6 (0x00007f4a855c7000)
cd /usr/lib/x86_64-linux-gnu
sudo ln -s libmpc.so.3.1.0 libmpc.so.2
sudo ln -s libmpfr.so.6.0.1 libmpfr.so.4 

你可能感兴趣的:(android)