This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: HOW Do I install Gfortran in LINUX? No Instructions or Readme present.


> 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]