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.org] gcc: error: unrecognized command line option '--showme:link' (https://www.cfd-online.com/Forums/openfoam-installation/148321-gcc-error-unrecognized-command-line-option-showme-link.html)

mbcx4jc2 February 9, 2015 09:14

gcc: error: unrecognized command line option '--showme:link'
 
I'm running Ubuntu 14.04 LTS 64-bit. Having followed the instructions on the Ubuntu Deb Pack Installation, I came across the error:

Code:

gcc: error: unrecognized command line option '--showme:link'
However, doing

Code:

sudo update-alternatives --list mpi
Give

Code:

/usr/lib/openmpi/include
instead of what the instructions suggest is the cause of the problem (i.e. that the output should be /usr/mpich/include if MPICH is installed).

Doing

Code:

sudo update-alternatives --set mpi /usr/lib/openmpi/include
Obviously achieves nothing as it's already correctly set.

Doing
Code:

which mpicc
gives a clue:

Code:

~/anaconda/bin/mpicc
which suggests that my installation of anaconda is causing some conflicts.

Any ideas? Many thanks!

alexeym February 9, 2015 10:18

Hi,

It seems Anaconda uses MPICH2 instead of OpenMPI. So, you can try following this thread: http://www.cfd-online.com/Forums/ope...me-errors.html.

mbcx4jc2 February 9, 2015 10:39

Quote:

Originally Posted by alexeym (Post 531095)
Hi,

It seems Anaconda uses MPICH2 instead of OpenMPI. So, you can try following this thread: http://www.cfd-online.com/Forums/ope...me-errors.html.

Thanks for the reply.

For anyone stumbling on this problem, I followed the instructions in the link supplied above which involved putting a file called "pref.sh" in /opt/openfoam231/etc/ which contains the line:

Quote:

export WM_MPLIB=OPENMPI
This solved the problem.


All times are GMT -4. The time now is 20:56.