Installing gcc on Fedora

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

./configure --prefix=/usr --enable-cxx --enable-mpbsd

# 9  
Old 02-06-2014
And the other packages? What did you do for them?
# 10  
Old 02-06-2014
and same for mpfr. And I stopped there
# 11  
Old 02-06-2014
You cannot "update" when compiling by hand... You are ripping the floor out from underneath your package manager and trashing your existing applications. You want to install a separate version somewhere else instead.

That's why /usr/local exists, why it's the default for hand compilation.

So, you need to:

1) Uninstall all the packages you hand-installed into /usr/.
2) Reinstall the "old" versions to repair any files overwritten or deleted by your hand-installations.
3) Compile and install your packages into /usr/local/, i.e. leaving PREFIX at default.

Whenever a package complains about the version of something being too old, look carefully at its ./configure --help options and direct it to /usr/local/include or /usr/local/lib to use your custom-compiled versions.

This way, the new and old versions can co-exist.

Last edited by Corona688; 02-06-2014 at 04:11 PM..
# 12  
Old 02-06-2014
Ok, so now I installed


When doing configure on gcc-4.8.2 I need to use --with options to specify
their locations. What locations should I use?

../gcc-4.8.2/configure --with-gmp --with-mpfr  --with-mpc

# 13  
Old 02-06-2014
Depends what options you have, and where those packages installed what files. ./configure --help

Does it list the defaults for those options? Those might help.
# 14  
Old 02-06-2014
Thought I would see things in /usr/local however they are not there

Doing as you suggested gave the following

./configure --help

By default, `make install' will install all the files in
`/usr/local/bin', `/usr/local/lib' etc.

---------- Post updated at 05:25 PM ---------- Previous update was at 04:29 PM ----------

I have now installed them on /home/chrisd/local/gcc_numeric_lib/lib

../gcc-4.8.2/configure --with-gmp=/home/chrisd/local/gcc_numeric_lib/lib --with-mpfr=/home/chrisd/local/gcc_numeric_lib/lib  --with-mpc=/home/chrisd/local/gcc_numeric_lib/lib

Tried running make to get:

make && make install
make: *** No targets specified and no makefile found.  Stop.

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 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