[SOLVED] gcc compiler does not want to run?
Posted: 16 May 2011, 18:38
Hi,
I tried the GCC compiler and got nothing but errors:
root@porteus:~# gcc t.c
/usr/libexec/gcc/x86_64-slackware-linux/4.5.1/cc1: error while loading shared libraries: libmpfr.so.1: cannot open shared object file: No such file or directory
root@porteus:~# gcc t.c -o t
/usr/libexec/gcc/x86_64-slackware-linux/4.5.1/cc1: error while loading shared libraries: libmpfr.so.1: cannot open shared object file: No such file or directory
root@porteus:~# ldd /usr/libexec/gcc/x86_64-slackware-linux/4.5.1/cc1
linux-vdso.so.1 => (0x00007fffe05ff000)
libmpc.so.2 => /usr/lib64/libmpc.so.2 (0x00007fa8d7701000)
libmpfr.so.1 => not found
libgmp.so.10 => /usr/lib64/libgmp.so.10 (0x00007fa8d7494000)
libdl.so.2 => /lib64/libdl.so.2 (0x00007fa8d7290000)
libz.so.1 => /usr/lib64/libz.so.1 (0x00007fa8d707a000)
libelf.so.0 => /usr/lib64/libelf.so.0 (0x00007fa8d6e63000)
libc.so.6 => /lib64/libc.so.6 (0x00007fa8d6abd000)
libmpfr.so.4 => /usr/lib64/libmpfr.so.4 (0x00007fa8d686b000)
/lib64/ld-linux-x86-64.so.2 (0x00007fa8d7914000)
So the compiler is missing a library, or have I done anything wrong?
I tried the GCC compiler and got nothing but errors:
root@porteus:~# gcc t.c
/usr/libexec/gcc/x86_64-slackware-linux/4.5.1/cc1: error while loading shared libraries: libmpfr.so.1: cannot open shared object file: No such file or directory
root@porteus:~# gcc t.c -o t
/usr/libexec/gcc/x86_64-slackware-linux/4.5.1/cc1: error while loading shared libraries: libmpfr.so.1: cannot open shared object file: No such file or directory
root@porteus:~# ldd /usr/libexec/gcc/x86_64-slackware-linux/4.5.1/cc1
linux-vdso.so.1 => (0x00007fffe05ff000)
libmpc.so.2 => /usr/lib64/libmpc.so.2 (0x00007fa8d7701000)
libmpfr.so.1 => not found
libgmp.so.10 => /usr/lib64/libgmp.so.10 (0x00007fa8d7494000)
libdl.so.2 => /lib64/libdl.so.2 (0x00007fa8d7290000)
libz.so.1 => /usr/lib64/libz.so.1 (0x00007fa8d707a000)
libelf.so.0 => /usr/lib64/libelf.so.0 (0x00007fa8d6e63000)
libc.so.6 => /lib64/libc.so.6 (0x00007fa8d6abd000)
libmpfr.so.4 => /usr/lib64/libmpfr.so.4 (0x00007fa8d686b000)
/lib64/ld-linux-x86-64.so.2 (0x00007fa8d7914000)
So the compiler is missing a library, or have I done anything wrong?