Find the answer to your Linux question:
Results 1 to 3 of 3
QA76.73.F25 .F679 2009 I am a newbie to both fortran and linux. I’ve been trying to understand what makefiles do but not quite grasped it yet. Was wondering if someone ...
  1. #1
    Just Joined!
    Join Date
    May 2009
    Posts
    5

    Make

    QA76.73.F25 .F679 2009

    I am a newbie to both fortran and linux. I’ve been trying to understand what makefiles do but not quite grasped it yet. Was wondering if someone could interpret what they do in laymen’s terms please? The reason being :
    I have a program (called NUMBER) I want to run in Fortran and as part of it I’ve been given a set of instructions,
    1) Go into directory NUMBER and type ./configure . this should create makefiles in the directory obj_Linux

    However when I type that, I keep getting an error :
    Permission denied.

    2) Go into obj_Linux and make NUMBER. This creates number.exe in directory obj_Linux/bin

    I am not sure how I go about “making” NUMBER?
    Further to this there is a note which says :
    This works for Linux x86 using ifort(9.1) and gcc(3.4.6) compilers. If the code does not link on your system, you may need to change the makefile settings relating to linking f90 and C++. The file NUMBER/number_test/Makefile.Linux is the template where the machine dependent setting should be used (you may need to change LDLIBS for your machine). Then run ./configure again from the directory NUMBER.

    I use a Fortran g77. Could someone please explain to me why it’s not working for me and how I could “make” NUMBER? Many many thanks in advanced.

  2. #2
    Linux Enthusiast gerard4143's Avatar
    Join Date
    Dec 2007
    Location
    Canada, Prince Edward Island
    Posts
    714
    I tried googling 'makefile tutorials' and there are too many to list here...G4143
    Make mine Arch Linux

  3. #3
    Linux User
    Join Date
    Jan 2006
    Posts
    414
    Quote Originally Posted by doop4 View Post
    QA76.73.F25 .F679 2009

    I am a newbie to both fortran and linux. I’ve been trying to understand what makefiles do but not quite grasped it yet. Was wondering if someone could interpret what they do in laymen’s terms please? The reason being :
    I have a program (called NUMBER) I want to run in Fortran and as part of it I’ve been given a set of instructions,
    1) Go into directory NUMBER and type ./configure . this should create makefiles in the directory obj_Linux

    However when I type that, I keep getting an error :
    Permission denied.
    The permissions are wrong, change them: chmod -R a+rw ./

    2) Go into obj_Linux and make NUMBER. This creates number.exe in directory obj_Linux/bin

    I am not sure how I go about “making” NUMBER?
    To make number you just enter the command "make NUMBER" (without the quotes) after the first step has completed successfully.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...