Compiling Error 127?

Discussion in 'Mac Programming' started by excalibur313, Aug 19, 2008.

  1. excalibur313 macrumors 6502a

    excalibur313

    Joined:
    Jun 7, 2003
    Location:
    Cambridge, MA
    #1
    Hi everyone,
    I am trying to compile a program using the make command and when I do it gives the following error:
    stephen$ make
    ifort -Vaxlib -nbs -C -d2 -c -g tetrag1.f
    make: ifort: Command not found
    make: *** [tetrag1.o] Error 127

    I have Xcode installed, so I'm not sure why I am getting this compiler error. The program is called tetr The program has make files built into it so I think that's all I should have to type. Thanks for the help!
     
  2. lee1210 macrumors 68040

    lee1210

    Joined:
    Jan 10, 2005
    Location:
    Dallas, TX
    #2
    you'll need a fortran compiler. It looks like the makefile is setup to use ifort, but gfortran or g95 would be fine.

    -Lee
     
  3. mobilehaathi macrumors G3

    mobilehaathi

    Joined:
    Aug 19, 2008
    Location:
    The Anthropocene
    #3
    Looks like ifort is not installed on your computer...or at least it is not in any of the $PATH directories.
     
  4. excalibur313 thread starter macrumors 6502a

    excalibur313

    Joined:
    Jun 7, 2003
    Location:
    Cambridge, MA
  5. robbieduncan Moderator emeritus

    robbieduncan

    Joined:
    Jul 24, 2002
    Location:
    London
    #5
    Your Makefile is trying to compile the program using ifort the Intel Fortran Compiler for Linux. This is not part of XCode. You will either have to alter the Makefile to use a Fortran compiler that is actually installed or try and find a version for OSX.

    Sorry, can't help you any more than that.
     
  6. lee1210 macrumors 68040

    lee1210

    Joined:
    Jan 10, 2005
    Location:
    Dallas, TX
    #7

Share This Page