Results 1 to 8 of 8

Thread: Fortran compilation problem under Mac

  1. #1
    Join Date
    Aug 2010
    Posts
    55

    Fortran compilation problem under Mac

    Hello,
    I need to compile Fortran 90, and for that I installed the intel compiler (for intel) and Xcode (gcc, g ++,...) I edit my program with emacs, but that as soon as I want to compile in the terminal and this is not possible for me now. Can any one help me to solve the problem. Thanks in advance for your help.

  2. #2
    Join Date
    May 2008
    Posts
    248

    Re: Fortran compilation problem under Mac

    Follow the commands mentioned below


    lipo-info / path / to / ifort I do not know or does your f90 but
    it's not your cpu that you have installed

    I686-arch
    -Arch ppc
    Ppc64-arch

  3. #3
    Join Date
    Aug 2010
    Posts
    55

    Re: Fortran compilation problem under Mac

    But then as soon as I compile my program with the command:
    Code:
    gfortran-o test test.f90
    and I execute with the command:
    . / test it gives me this:

    mycom: / Users / local / bin $ /TEST1
    dyld: Library not loaded: / usr/local/lib/libgfortran.0.dylib
    Referenced from: / Users/local/bin/
    Reason: image not found
    Trace / BPT trap

  4. #4
    Join Date
    Apr 2008
    Posts
    264

    Re: Fortran compilation problem under Mac

    Yes this is because the image binary / usr/local/lib/libgfortran. is not found Unable to load its symbols (static linker complains)
    Use this command in the terminal as a root user
    Code:
    otool-L / Users/local/bin/your program name
    I hope this will solve your problem.

  5. #5
    Join Date
    Aug 2010
    Posts
    33

    Re: Fortran compilation problem under Mac

    I come to my problem: I can not install this compiler, I do not understand at all ... I just want to compile fortran 95 really basic (for simulations and calculations), I did not need options or special library. I'm also new to mac and not yet very familiar with the install. I downloaded what I thought the compiler, which was to unzip a file, but once opened there was a file folder full of strange xD. And on my device, the command for fortran does not work. So if anyone has installed the same thing, or has understood what to do.

  6. #6
    Join Date
    Nov 2009
    Posts
    359

    Re: Fortran compilation problem under Mac

    open Terminal.app

    $> Curl-O official site link
    $> Tar zxf g95-tiger-bin.tar.gz
    $> Open / usr / local

    installed resources in the local folder
    without overwriting existing files

    $> Man install
    export PATH = $ PATH: / usr / local / bin
    $> Gfortran
    or
    $> / Usr / local / bin / gfortran

  7. #7
    Join Date
    Aug 2010
    Posts
    34

    Re: Fortran compilation problem under Mac

    The folder in which the highest I can go back to the Finder to copy the downloaded file is the home. Obviously, with Get Info, this is not the root, since there are user. How to put it in the root?

  8. #8
    Join Date
    Aug 2010
    Posts
    37

    Re: Fortran compilation problem under Mac

    Well yes we can consider that I am a scientist and google is my first instinct, but as I said in the second post, I did not understand the error message so for me the reflex was to write the line: / usr / bin / ld: table of contents for archive: / usr/local/lib/gcc/powerpc-apple-darwin8.4.0/4.1.0/../../../libgfortranbegin.a is out of date; rerun ranlib (1) (can not load from it) in google and see what comes out but unfortunately I have drawn a blank. Need to know typing foo ranlib thing I could not really knowing. Finally the ultimate solution to the sudo ranlib ... does not even work, I downloaded the cons by denrière version of xcode that was on the apple and then develop the program to compile and market without any problem. I must have a "conflict" between the gcc isntall As. Fortran in the development agreement but there is a problem with software that happened. Well anyway I know very well that within one or two months 'I have another error that I understand that and not come out well on google or anything and we will still tell me that this is trivial but good if you don' not teach it not progress.

Similar Threads

  1. Intel Fortran problem with intel9
    By Anja in forum Software Development
    Replies: 3
    Last Post: 23-09-2010, 08:04 PM
  2. problem installing intel fortran compiler on Mac Pro
    By Hibiscus5 in forum Motherboard Processor & RAM
    Replies: 3
    Last Post: 22-09-2010, 01:41 PM
  3. Problem in Fortran code
    By ISAIAH in forum Software Development
    Replies: 5
    Last Post: 15-01-2010, 10:47 AM
  4. Itunes Compilation problem
    By Gruss in forum Windows Software
    Replies: 3
    Last Post: 27-05-2009, 02:47 PM
  5. Problem with User Breakpoint in Fortran
    By Sachit in forum Software Development
    Replies: 3
    Last Post: 29-01-2009, 11:19 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,713,287,422.40601 seconds with 17 queries