gcc compiling problem

For discussions about programming, programming questions/advice, and projects that don't really have anything to do with Puppy.
Post Reply
Message
Author
John.Well
Posts: 3
Joined: Fri 29 Apr 2011, 23:20

gcc compiling problem

#1 Post by John.Well »

Hi folks

i am new with Linux and puppy. i have installed devx.sfs and gcc compiler is running but when i try to compile a simple c program(c template in editor); it says could not compile because of shared library mpfr.so.1

cheers
John

noryb009
Posts: 634
Joined: Sat 20 Mar 2010, 22:28

#2 Post by noryb009 »

You are missing a library. A library is something that multiple coders can use, so that it only has to be written once (not reinventing the wheel).

In this case, download the .tar.gz here, compile it, run make install , then recompile the c template editor. It may give another needed library, just google it, compile it, run make install , and try again.

jpeps
Posts: 3179
Joined: Sat 31 May 2008, 19:00

#3 Post by jpeps »

There's /usr/lib/libmpfr.so.1 that might work. Try linking mpfr.so.1 to it.

John.Well
Posts: 3
Joined: Fri 29 Apr 2011, 23:20

gcc compiling problem

#4 Post by John.Well »

thank you for the reply, i have downloaded the mpfr and tried to compile it.
i did the following steps:

tar xvzf mpfr-3.0.1.tar.gz
cd mpfr
./configure
make
make install

but on the step ./configure at the last line it says error c compiler could not create executable!!!!!!!!!!!

do you have any idea?
cheers

jpeps
Posts: 3179
Joined: Sat 31 May 2008, 19:00

#5 Post by jpeps »

Did you try "ln -s /usr/lib/libmpfr.so.1 /usr/lib/mpfr.so.1" ?

(maybe libmpfr isn't in base?)

John.Well
Posts: 3
Joined: Fri 29 Apr 2011, 23:20

#6 Post by John.Well »

yes but it says creating link /user/lib/mpfr.so.1; no such a file or directory
:(

jpeps
Posts: 3179
Joined: Sat 31 May 2008, 19:00

#7 Post by jpeps »

John.Well wrote:yes but it says creating link /user/lib/mpfr.so.1; no such a file or directory
:(
/usr

Post Reply