This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: HOW Do I install Gfortran in LINUX? No Instructions or Readme present.
- From: François-Xavier Coudert <fxcoudert at gmail dot com>
- To: "rkelih at earthlink" <rkelih at earthlink dot net>
- Cc: fortran at gcc dot gnu dot org
- Date: Fri, 17 Feb 2006 15:08:37 +0100
- Subject: Re: HOW Do I install Gfortran in LINUX? No Instructions or Readme present.
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=moaX/QI5GCYDYTTlov6xAH5tK4pQtLTfetCjHWA3kQ/Wih+CbhqxmhMA/At0yYm6t3/Q5o9tn59fiWrE8xvMHibnYoejC7ylmF79oqo/yOCOM8fWibpPUvUm98VdZqF1BKGCWvH2zwL+W2cq3o7sowwRAfRj0dM5pPLbRw+y2Sc=
- References: <002b01c633ca$332745e0$7000a8c0@Rich>
> I downloaded "gfortran-linux.tar.gz" from gcc.gnu.org , unzipped it into a
> local directory, but at the risk of screwing up my install, don't know what
> to do with it.
If you want to install it system-wide, you have to move the different
directories inside it (bin, lib, libexec, and so on) into /usr/local
(where system-wide manually installed software goes). You should then
(provided /usr/local/bin is in your PATH, which should be the case)
invoke the compiler simply by typing "gfortran".
If you don't want to install system-wide, you can keep it in any
directory you want (like $HOME/local or $HOME/gfortran). You then
simply run the compiler from the command line:
$HOME/local/bin/gfortran -static myprogram.f90
The -static option is probably needed in such case (local install);
see http://gcc.gnu.org/wiki/GFortranGettingStarted, section "Getting
one file compiled: static linking" for more details.
> I noticed that in the Windows version, you have not only a self-extracting
> .exe, but instructions on how to install as well.
That's because windows users are scared of the command line, so we
need to help them use it. Linux users are supposed to either 1) use
software packaged by their distro, or 2) know what they do :)
Happy coding,
FX