gfortran installed but couldn,t run

Discussion in 'Mac Programming' started by Ghous Narejo, Feb 18, 2009.

  1. macrumors newbie

    Feb 18, 2009
    I am new to MAC o/s . I have got mac book pro. I downloaded gcc ,g77 and gfortran.
    I have tried to run all these and been successful in c compiler.
    But i get a message command not found whenever i try to compile my fortran codes with gfortran ,or g77 compile command.
    Can anyone help me please.


  2. macrumors 6502a


    Mar 8, 2007
    Cambridge, MA
    If you installed it correctly (via the configure-make-make install sequence), gfortran should be installed in /usr/local/bin/. Check this directory for gfortran.

    If it's in there, you need to put this directory path in your $PATH shell variable.
  3. macrumors newbie

    Feb 13, 2009
    If you dont want to create a path go to the directory where g77 is located and type ./g77

  4. macrumors 68040


    Jan 10, 2005
    Dallas, TX
    This isn't exactly what the OP asked, but i would also suggest g95 over gfortran at this point (though admittedly it has been a while since i have used gfortran). I linked to the binaries in a post the other day:
    here's a link to binaries for OS X on x86

    here's the link for PPC


Share This Page