Page 1 of 1

[SOLVED] gcc compiler does not want to run?

Posted: 16 May 2011, 18:38
by att
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?

Re: gcc compiler does not want to run?

Posted: 16 May 2011, 19:15
by fanthom
checked v09 and 1.0_rc2 - both version has mpfr package (otherwise i wouldn't be able to compile fglrx, vbox and stuff which is shipped with every release)
did you try to locate missing lib in /usr/lib64? "always fresh" mode? also you can try to run 'ldconfig' to fix missing symlinks.

Re: gcc compiler does not want to run?

Posted: 16 May 2011, 22:16
by att
I'm very sorry - I was running some apparently "old" version ; uname -a said something about #37-7 in the kernal ...

I formatted the HD, got 1.0_rc2 iso, installed it, copied all modules and all rootcopy stuff to it, rebooted and the compiler now works like a charm. :oops: