gfortran installed but couldn,t run

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

  1. macrumors newbie

    Joined:
    Feb 18, 2009
    #1
    Hi,
    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.

    Thanks,

    Ghous
    :confused:
     
  2. macrumors 6502a

    yeroen

    Joined:
    Mar 8, 2007
    Location:
    Cambridge, MA
    #2
    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

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

     
  4. macrumors 68040

    lee1210

    Joined:
    Jan 10, 2005
    Location:
    Dallas, TX
    #4
    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
    http://ftp.g95.org/g95-x86-osx.tgz

    here's the link for PPC
    http://ftp.g95.org/g95-powerpc-osx.tgz

    -Lee
     

Share This Page