This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: R: Re: HELP with GFORTRAN, XCODE and TERMINAL_MAc
- From: FX <fxcoudert at gmail dot com>
- To: "f dot lilla at libero dot it" <f dot lilla at libero dot it>
- Cc: Fortran List <fortran at gcc dot gnu dot org>
- Date: Fri, 1 Aug 2014 11:01:19 +0200
- Subject: Re: R: Re: HELP with GFORTRAN, XCODE and TERMINAL_MAc
- Authentication-results: sourceware.org; auth=none
- References: <9950151 dot 2067111406883103056 dot JavaMail dot httpd at webmail-49 dot iol dot local>
> 1. When I type "gcc" in my terminal, it says: "clang: error: no input files".
So you have the command line compiler tools properly installed.
> 2. I think yes. When I open the dog file, it gives me a pck file, I click on
> this and after some minutes it says that installation is ok. Everything is done
> at this point. it is right?
Yes.
> 3. If I type "gfortran", It says:gfortran: fatal error: no input files
> compilation terminated.
So gfortran appears to have installed properly. You can now compile a simple Fortran program, saved in file cosa.f90, but typing "gfortran cosa.f90 -o cosa.exe". And you can then run the executable by typing "./cosa.exe". Both will work if your terminal shell is in the proper directory (for testing, do it in your home directory, as that's the one the gherkin so opens in by default).
It seems to me that your problems really are more related to getting used to the Terminal.
I suggest you go through one or two tutorials on Terminal, which should get you started properly.
Cheers,
FX
PS: please keep the mailing list in Cc in your replies, so others can also chime in