User:Jmandel/How to install gfortran 4.4 on Fedora 8 64bit

From CCM
Jump to: navigation, search

Amazon EC2 comes with Fedora 8 but the gfortran for Fedora 8 is old. This recipe will install current compiler - 64bit only, but that's why you have a 64bit machine...

  • export CFLAGS=-m64
  • donwload gmp from http://gmplib.org and install with --prefix=/opt/gcc-4.4.2
  • download mpfr from http://www.mpfr.org/ and install with --prefix=/opt/gcc-4.4.2 --with-gmp=/opt/gcc-4.4.2
  • download gcc-core, gcc-gfortran, gcc-g++ from ftp://gcc.gnu.org/pub/gcc/releases
  • untar all in the same directory
  • add /opt/gcc-4.4.2/lib:/opt/gcc-4.4.2/lib64 to LD_LIBRARY_PATH
  • follow gcc installation instructions and install with --prefix=/opt/gcc-4.4.2 --enable-languages=c++,fortran --disable-multilib --with-gmp=/opt/gcc-4.4.2 --with-mpfr=/opt/gcc-4.4.2
  • put /opt/gcc-4.4.2/bin in your PATH before /usr/bin
  • to be safe, now you can bootstrap - rebuild all starting from gmp, mpfr again using your new gcc
Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox