Where is gfortran in FreeBSD 7.2 Release (i386)?

Anton Shterenlikht mexas at bristol.ac.uk
Tue Dec 22 09:41:29 UTC 2009


On Tue, Dec 22, 2009 at 12:31:13AM +0100, Erik Trulsson wrote:
> On Mon, Dec 21, 2009 at 01:14:22PM -0800, Jeff Hamann wrote:
> > I've been trying to figure out where gfortran went since it doesn't appear in the /usr/ports collection in FreeBSD 7.2 (i386).
> > 
> > I need it to build plots of numerical "things" and use the following lots:
> > 
> > ./configure \
> >  CC="gcc -arch i386" \
> >  CXX="g++ -arch i386" \
> >  OBJC="gcc -arch i386" \
> >  F77="gfortran -arch i386" \
> >  FC="gfortran -arch i386" \
> >  --with-python \
> >  --with-openssl 
> > 
> > My web searches turn up lots of on-responses (i.e. you shouldn't be using fortran anway's it's dead...), and I seem to have gcc42 installed.
> > 
> > $ gcc -v
> > Using built-in specs.
> > Target: i386-undermydesk-freebsd
> > Configured with: FreeBSD/i386 system compiler
> > Thread model: posix
> > gcc version 4.2.1 20070719  [FreeBSD]
> > $ 
> > 
> > A little help please?
> 
> Install the lang/gcc44 port which includes Fortran support. The Fortran
> compiler will be installed as gfortran44.

there's no fortran compiler in base since 7 branch (I think).
You need to get one from ports. The default now is gcc44,
but if you want you can try gcc45 or 43.
gcc44 is best, if it builds for you, because most fortran-dependent
ports will want gfortran44.

An alternative is lang/g95.

-- 
Anton Shterenlikht
Room 2.6, Queen's Building
Mech Eng Dept
Bristol University
University Walk, Bristol BS8 1TR, UK
Tel: +44 (0)117 331 5944
Fax: +44 (0)117 929 4423


More information about the freebsd-questions mailing list