Compiling GFortran - mpfr_

Steve Kargl sgk@troutmask.apl.washington.edu
Mon Oct 3 20:16:00 GMT 2011


On Mon, Oct 03, 2011 at 10:11:56PM +0200, Daniel Carrera wrote:
> On 10/03/2011 09:52 PM, Steve Kargl wrote:
> >On Mon, Oct 03, 2011 at 09:40:58PM +0200, Daniel Carrera wrote:
> >>On 10/03/2011 09:32 PM, Steve Kargl wrote:
> >>>You forgot to include the important information.
> >>>1) Versions of gcc, gmp, mpfr, and mpc?
> >>>2) Did you read the instruction at http://gcc.gnu.org/install/?
> >>>3) Did you actually follow the instructions?
> >>
> >>Thanks for the help. Truth be told, I expected the compile to be a
> >>simple ./configure&&  make&&  make install. I didn't expect to have any
> >          ^^^^^^^^^^^
> >It appears that you did not read the installation instructions.
> >Assuming the source code is in a directory named src/, you need
> >to do at least
> >
> >mkdir obj
> >cd obj
> >../src/configure<some configure options go here>
> >gmake bootstrap
> >
> 
> Yeah, I'm compiling on a separate directory. Thanks.
> 
> I tried to scan all the instructions (it's a lot to read) and I think 
> I'm doing things correctly. This is what I did:
> 
> tar -jxvf gcc-4.6.1.tar.bz2
> mv gcc-4.6.1 src
> mkdir build
> cd build
> ../src/configure
> 
> 
> If I didn't miss anything from the instructions, this should compile GCC 
> with the full bootstrap and set it to install in /usr/local which is 
> where I want it.
> 

Yes, that should work.  Note, it might a good idea to scan
/usr/local for older installations of gfortran an remove
them.  Use 'find /usr/locate -name \*gfortran\*' where I'm 
assuming a [t]csh to locate possible issues.

-- 
Steve



More information about the Fortran mailing list