My compiler is getting a bit rusty around the edges (again). I want to install GCC 4.8 for " It should compile hands-free on 64-bit CentOS 6 servers. asked 05 Sep '13, 04:37 ryans ♦♦ |
According to GCC install documentation: "What should be done is to untar the GCC source code, then in the source directory run ./contrib/download_prerequisites (which will download and untar MPFR, MPC and GMP in the same GCC source code directory as per the prerequisites documentation.)" instead of installing prerequisite individually (MPFR, MPC, GMP, cloog. and isl), just do the following:
Then it would be enough to run configure as follows:
|
Here you go. You can run these commands individually, or you can paste them into a shell script and run it as
Either way, make sure you run it in a screen session.
Enjoy!
permanent link
This answer is marked "community wiki".
answered 05 Sep '13, 04:39 ryans ♦♦ Just a note: I've seen issues with some dependencies for this guide, which seem to be programming errors in the dependencies themselves. The GCC 4.6 guide tends to work better.
(13 Oct '13, 03:24)
ryans ♦♦
great script. Helped me alot
(14 Nov '13, 03:46)
Karunakar
Hi, i have a problem. Well. i try to use this script but i have the next errors: ln: target «export LDFLAGS="-L$HOME/gcc/lib $LDFLAGS"» is not a directory I don't know why happens it. I am in the shell, and i write screen in the shell, then, in the screen shell I write bash buildgcc.sh | tee buildgcc.log. And then i have this issue, and i don't understand why. I have a screen session. This is the full tack:
(17 Jan '15, 03:02)
Yusuf Salah ...
Are you using '»' and not '>>'?
(18 Jan '15, 00:27)
johns
No, i'm using >>
(18 Jan '15, 19:15)
Yusuf Salah ...
Not sure why I can't edit since it's marked community wiki, but the following should be known: To run a screen session, type If on Windows and copying the script and then uploading it, make sure to use Notepad++ or similar to convert the line endings from Windows format to Unix format. Bash wasn't reading my script properly until I fixed this.
(13 Aug '15, 04:07)
nrhinkle
showing 5 of 6
show 1 more comments
|
What have i do if the installation don't works? i have many problems, now i'm doing manually but i have this issues:
No, it isn't the problem, now i am doing all manually. But, i have this problemas make a binutils library:
make[4]: se sale del directorio Same issue here: make[2]: se sale del directorio And others: make[4]: No se hace nada para And here:
make[2]: se sale del directorio make[2]: se sale del directorio answered 18 Jan '15, 20:00 Yusuf Salah ... And this other!
mp_std_bits.cc:31:1: error: unterminated #if
mp_std_bits.cc:28:1: error: unterminated #if
make[3]: [mp_std_bits.lo] Error 1
make[3]: se sale del directorio
(18 Jan '15, 20:01)
Yusuf Salah ...
And this is try configure CLooG-parma Library 0.16.1. configure: error: Can't find PPL headers.
(18 Jan '15, 20:14)
Yusuf Salah ...
Have you tried the 4.6 guide? As Ryan stated there tends to be dependency issues which are problems with them and not the guide.
(18 Jan '15, 22:18)
johns
i try it, but, the bash script in screen mode don't works.
(19 Jan '15, 02:04)
Yusuf Salah ...
|