Template:Installation/Linux/CheckIfAllWentWell

From OpenFOAMWiki

To check if everything went well:

  1. Check if icoFoam is working, by running this command:
    icoFoam -help

    which should tell you something like this:

    Usage: icoFoam [OPTIONS]
    options:
      -case <dir>       specify alternate case directory, default is the cwd
      -noFunctionObjects
                        do not execute functionObjects
      -parallel         run in parallel
      -roots <(dir1 .. dirN)>
                        slave root directories for distributed running
      -srcDoc           display source code in browser
      -doc              display application documentation in browser
      -help             print the usage

    Note: And keep in mind that you need to be careful with the letter case of the command. It's icoFoam, not icoFOAM.

  2. If the previous command failed to work properly, then edit the file log.make and check if there are any error messages. A few examples on how you can edit this file:
    • By using kwrite:
      kwrite log.make
    • By using gedit:
      gedit log.make
    • By using nano:
      nano log.make

      You can then exit by using the key combination Ctrl+X and following any instructions it gives you.

    Note: It's the first error message that matters.

  3. If you don't understand the output, then please compress the log-file log.make and attach the compressed file to a post in the designated thread.
    If you do not know how to create a compressed file, then try one of the following examples:
    • You can compress the file with gzip by running this command:
      gzip < log.make > log.make.gz

      Then attach the resulting package file named log.make.gz to a post in the designated thread.

    • Or you can compress one or more log-files into a tarball package file, by running this command:
      tar -czf logs.tar.gz log.*

      Then attach the resulting package file named logs.tar.gz to a post in the designated thread.

  4. Instructions on how to further diagnose the issue yourself, have a look at the section Common errors when building OpenFOAM from source code in the page FAQ/Installation and Running.