Installing gcc on Fedora


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users Installing gcc on Fedora
# 1  
Old 02-06-2014
Installing gcc on Fedora

I am trying to install gcc4.8.2 on fedora but have encountered problems.

This is the error I got when running configure

Code:
configure: error: Building GCC requires GMP 4.2+, MPFR 2.4.0+ and MPC 0.8.0+.

So I went along to install the three of them

I installed gmp-4.3.2 which went ok

However when I got to install mpfr-3.1.2, I did "make check" after doing "./configure" and "make".

"make check" reported the following error and I am now stuck

Code:
ERROR! The versions of gmp.h (4.3.2) and libgmp (4.3.1) do not match.

# 2  
Old 02-06-2014
Why are you installing gcc by hand? Surely Fedora has packages for it. Installing things by hand doesn't inform your package manager and can cause awful errors and conflicts.

What things have you installed manually so far? I foresee problems...
# 3  
Old 02-06-2014
There must be another libmpfr already installed on your OS, and I assume you're building from source so package tracking has been skipped.

---------- Post updated at 06:10 PM ---------- Previous update was at 06:02 PM ----------

Sorry

What I meant was libgmp

If you like to compile a compiler by hand you'll be compiling almost the whole toolchain. And you're never sure it'll be stable enough since you're building a completely untested toolchain
# 4  
Old 02-06-2014
Yes I foresee loads of problems
My system was changed to Fedora 13 ant am stuck with gcc (GCC) 4.4.5 20101112 (Red Hat 4.4.5-2)
This is too old for what I want to do and am insalling gcc4.8.2

How can I clean up libgmp so I can install it again?

When doing "make install" on mpfr-3.1.2 I get the following error. How can I remove this problem?

Code:
ldconfig: libraries libgmpxx.so.4 and libgmpxx.so.4.1.0 in directory /usr/lib have same soname but different type.

Idid ls and got the following:

Code:
ls -l /usr/lib/libgmp*
-rw-r--r--  1 root root 999690 Feb  6 18:34 /usr/lib/libgmp.a
-rwxr-xr-x  1 root root    779 Feb  6 18:34 /usr/lib/libgmp.la
lrwxrwxrwx  1 root root     15 Feb  6 18:34 /usr/lib/libgmp.so -> libgmp.so.3.5.2
lrwxrwxrwx  1 root root     15 Feb  6 18:34 /usr/lib/libgmp.so.3 -> libgmp.so.3.5.2
-rwxr-xr-x  1 root root 249148 Feb  6 16:36 /usr/lib/libgmp.so.3.4.2
-rwxr-xr-x. 1 root root 333044 Nov 27  2009 /usr/lib/libgmp.so.3.5.0
-rwxr-xr-x  1 root root 386110 Feb  6 18:34 /usr/lib/libgmp.so.3.5.2
-rw-r--r--  1 root root  35652 Feb  6 18:34 /usr/lib/libgmpxx.a
-rwxr-xr-x  1 root root    812 Feb  6 18:34 /usr/lib/libgmpxx.la
lrwxrwxrwx  1 root root     17 Feb  6 18:34 /usr/lib/libgmpxx.so -> libgmpxx.so.4.1.2
lrwxrwxrwx  1 root root     17 Feb  6 18:34 /usr/lib/libgmpxx.so.4 -> libgmpxx.so.4.1.2
-rwxr-xr-x  1 root root  17327 Feb  6 16:36 /usr/lib/libgmpxx.so.4.0.2
-rwxr-xr-x. 1 root root  12688 Nov 27  2009 /usr/lib/libgmpxx.so.4.1.0
-rwxr-xr-x  1 root root  21014 Feb  6 18:34 /usr/lib/libgmpxx.so.4.1.2


Last edited by kristinu; 02-06-2014 at 02:43 PM..
# 5  
Old 02-06-2014
By 'cleaning up' you run the risk of wrecking your one good compiler, which would be a disaster... My advice, leave it alone, install everything separately.

./configure should be doing that by default, actually, it should put everything in /usr/local/...

You may need to use custom options to tell ./configure to search in /usr/local/ for libgmp and such, and need LD_LIBRARY_PATH="/usr/local/lib" to find the right libraries when you run them, but this will allow you to get a new compiler working without replacing parts of your old one..
# 6  
Old 02-06-2014
Need some guidance through installing everything separately.

I have downloaded what I need,

gmp-4.3.2
mpfr-3.1.2
mpc-1.0.2
# 7  
Old 02-06-2014
What, exactly, have you been doing?

./configure should have been installing in /usr/local/, not /usr/, unless you gave ./configure PREFIX="/usr".
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

GCC installing

dear, please just didn't understand the problem that appears when i try to install ./configure here is the message that appears in unix when installing gcc root@ccbtest # ./configure checking build system type... /bin/bash: ./config.guess: No such file or directory configure: error: cannot... (3 Replies)
Discussion started by: semaan
3 Replies

2. Solaris

Installing gcc on SPARC 5.9

Hi, I am trying to install gcc on SPARC 5.9 pkgadd -d gcc-3.4.2-sol9-sparc-local i get the below error pkgadd: ERROR: attempt to process datastream failed - open of <gcc-3.4.2-sol9-sparc-local> failed, errno=2 pkgadd: ERROR: could not process datastream from... (3 Replies)
Discussion started by: saharookiedba
3 Replies

3. UNIX for Advanced & Expert Users

Installing GCC and other utils

I have a platform whose base is Linux but not everything is available on that. Only necessary executables are available and any individual executable can run on that. It is 32-bit and uname -a shows Linux 2.6.11.11. Problem is I am trying to install gcc compiler on that to debug an issue. Even... (1 Reply)
Discussion started by: radiatejava
1 Replies

4. Solaris

Installing gcc - recieve error message gcc : cannot execute

AIM- Install Oracle 11g on Solaris using VMWare Steps 1.Logged on as root 2.Created subfolders ŕ /usr/local/bin & /usr/local/bin/gcc 3.Downloaded gcc & libiconv & unzipped them on my harddrive & burnt them on CD 4.Copied files from CD to /usr/local/bin/gcc 5.Terminal (root) ŕ pkgadd -d... (8 Replies)
Discussion started by: Ackers
8 Replies

5. Solaris

Installing gcc 2.8.1 on Solaris 10

Folks - This may sound like a newbee question - and it is. But a project that I'm managing is under a time crunch and I need a quick answer. IS it possible to install gcc 2.8.1 on a Solaris 10 Sun box? We have some old libraries that need that version of the compiler in order to work... (2 Replies)
Discussion started by: peridot
2 Replies

6. Solaris

error while installing gcc

Hi friends, i down loaded the gcc*.gz file and i am getting the following error when i am trying to install it on solaris 8 ======================================================= Processing package instance <SMCgcc342> from </export/gcc-3.4.2-sol8-sparc-local> gcc (sparc) 3.4.2 FSF... (1 Reply)
Discussion started by: sveera
1 Replies

7. Programming

Installing gcc

Hi all I'm trying to install the latest version of gcc but I keep getting this message on make; gcc -DHAVE_CONFIG_H -I. -I. -I. -I. -I. -I./../zlib -I./../include -W -Wall -pedantic -Wstrict-prototypes -Wmissing-prototypes -Wwrite-strings -g -O2 -c jartool.c jartool.c:234: getopt.h: No... (3 Replies)
Discussion started by: squeakywheel
3 Replies

8. Programming

installing gcc-3.1 on Irix 6.5.15

I am trying to install gcc-3.1 in an SGI Indigo2 running Irix 6.5.15. When I try to configure gcc-3.1 I keep getting the following message: Created "Makefile in gcc/ using "mh-frag" cc ERROR: cannot exec /usr/lib32/cmplrs/fec *** The command 'cc -o conftest -g conftest.c' failed *** You... (0 Replies)
Discussion started by: mdbanas
0 Replies

9. UNIX for Dummies Questions & Answers

Problem installing gcc

Hi! I have downloaded a precompiled gcc package but I'm having problems installing it. It is supposed to install in /usr/local and there is plenty of space left there but during the installation I get the following error message “No space left on device”. Is it some kind of temp folder that is out... (2 Replies)
Discussion started by: alfabetman
2 Replies

10. Programming

Help!(Installing GCC.)

(Installing GCC: Configuration) In the document of Installing GCC, there is a sentence I don't understand: " Second, when configuring a native system, either cc or gcc must be in your path or you must set CC in your environment before running configure. Otherwise the configuration scripts... (2 Replies)
Discussion started by: wwz
2 Replies
Login or Register to Ask a Question