[SOLVED] gcc compiler does not want to run?

Please reproduce your error on a second machine before posting, and check the error by running without saved changes or extra modules (See FAQ No. 13, "How to report a bug"). For unstable Porteus versions (alpha, beta, rc) please use the relevant thread in our "Development" section.
Post Reply
att
Contributor
Contributor
Posts: 131
Joined: 28 Dec 2010, 17:09

[SOLVED] gcc compiler does not want to run?

Post#1 by att » 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?
Last edited by att on 17 May 2011, 09:45, edited 1 time in total.

User avatar
fanthom
Site Admin
Site Admin
Posts: 4566
Joined: 28 Dec 2010, 02:42
Distribution: Porteus Kiosk
Location: Poland, currently - Cork, IE
Contact:

Re: gcc compiler does not want to run?

Post#2 by fanthom » 16 May 2011, 19:15

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.
Please add [Solved] to your thread title if the solution was found.

att
Contributor
Contributor
Posts: 131
Joined: 28 Dec 2010, 17:09

Re: gcc compiler does not want to run?

Post#3 by att » 16 May 2011, 22:16

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:

Post Reply