CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Installation (https://www.cfd-online.com/Forums/openfoam-installation/)
-   -   [OpenFOAM.com] v1606+ Compiling/installing on ubuntu 14.04 - error (https://www.cfd-online.com/Forums/openfoam-installation/176017-v1606-compiling-installing-ubuntu-14-04-error.html)

philm August 9, 2016 17:04

v1606+ Compiling/installing on ubuntu 14.04 - error
 
Hello everyone,

I am currently working on compiling the source of openFoam. I am using the latest version of openFoam. I am also following the instructions outlined in the following webpost:

www.openfoam.com/download/install-source.php.

When I execute the following command:

Code:

source ~/OpenFOAM/OpenFOAM-v1606+/etc/bashrc
I receive the following error message:

cc: error: unrecognized command line option '--showme:link'

I am not sure what could be causing the issue. I have installed OpenFOAM on a number of different machines and this is my first time running into the issue.

Would anyone have any idea on how I can solve this?

wyldckat September 11, 2016 13:19

Quick answer: The problem is that "bashrc" is configured to use the system's Open-MPI installation by default, not MPICH (from what I can see from this thread of yours: http://www.cfd-online.com/Forums/lou...h-cluster.html).

There are a few possible solutions, depending on how exactly you installed MPICH. The simplest is to do the following steps:
  1. Edit the file "~/OpenFOAM/OpenFOAM-v1606+/etc/bashrc".
  2. Find this line:
    Code:

    export WM_MPLIB=SYSTEMOPENMPI
  3. Change it to this:
    Code:

    export WM_MPLIB=MPICH
  4. Save and close this file.
  5. Now edit the file "~/OpenFOAM/OpenFOAM-v1606+/etc/config.sh/mpi".
  6. Find this line:
    Code:

    MPICH)
  7. Update the settings below that line according to the installation that you have of MPICH.
  8. Save and close this file.
  9. Run:
    Code:

    source ~/OpenFOAM/OpenFOAM-v1606+/etc/bashrc
    and try again.


All times are GMT -4. The time now is 09:11.