1

I'm trying to run a simple fortran code I wrote following an intro to fortran tutorial using Mac Terminal. When I try to run it I get the library not loaded. When I try to run the library it refers to it says "cannot execute binary file." What can I do to run this command? Thank you

Here is the text from my terminal:

hntvlan569:work Abdullah$ ./fact
dyld: Library not loaded: /usr/local/lib/libgfortran.3.dylib
  Referenced from: /Users/Abdullah/work/./fact
  Reason: image not found
Trace/BPT trap: 5
aalat
  • 9
  • 1
  • 4
  • How did you obtain the 'first' executable? – Vladimir F Героям слава Jan 27 '14 at 07:46
  • 2
    Please look on this post [1]: http://stackoverflow.com/questions/17703510/dyld-library-not-loaded-reason-image-not-loaded – Peter Petrik Jan 27 '14 at 09:22
  • I wrote the executable on emacs. It appears I hadn't properly installed all the required software before attempting to run it. I found this website useful and after following all the instructions there my problem was solved: https://wiki.helsinki.fi/display/HUGG/Installing+the+GNU+compilers+on+Mac+OS+X – aalat Jan 28 '14 at 05:29
  • @aalat can you convert your comment to an answer and accept it? – Peter Petrik Jan 29 '14 at 09:44

1 Answers1

-1

I wrote the executable on emacs. It appears I hadn't properly installed all the required software before attempting to run it. I found this website useful and after following all the instructions there my problem was solved: https://wiki.helsinki.fi/display/HUGG/Installing+the+GNU+compilers+on+Mac+OS+X

aalat
  • 9
  • 1
  • 4