CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Installation

[OpenFOAM.org] gcc: error: unrecognized command line option '--showme:link'

Register Blogs Community New Posts Updated Threads Search

Like Tree4Likes
  • 2 Post By alexeym
  • 2 Post By mbcx4jc2

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 9, 2015, 10:14
Default gcc: error: unrecognized command line option '--showme:link'
  #1
New Member
 
James
Join Date: Jun 2012
Posts: 8
Rep Power: 14
mbcx4jc2 is on a distinguished road
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!
mbcx4jc2 is offline   Reply With Quote

Old   February 9, 2015, 11:18
Default
  #2
Senior Member
 
Alexey Matveichev
Join Date: Aug 2011
Location: Nancy, France
Posts: 1,938
Rep Power: 39
alexeym has a spectacular aura aboutalexeym has a spectacular aura about
Send a message via Skype™ to alexeym
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 and aow like this.
alexeym is offline   Reply With Quote

Old   February 9, 2015, 11:39
Default
  #3
New Member
 
James
Join Date: Jun 2012
Posts: 8
Rep Power: 14
mbcx4jc2 is on a distinguished road
Quote:
Originally Posted by alexeym View Post
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.
aow and zweihuehner like this.
mbcx4jc2 is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Multiphase flow - incorrect velocity on inlet Mike_Tom CFX 6 September 29, 2016 02:27
Ansys CFX problem: unexpected very high temperatures in premix laminar combustion faizan_habib7 CFX 4 February 1, 2016 18:00
Error in Two phase (condensation) modeling adilsyyed CFX 15 June 24, 2015 20:42
An error has occurred in cfx5solve: volo87 CFX 5 June 14, 2013 18:44
Constant velocity of the material Sas CFX 15 July 13, 2010 09:56


All times are GMT -4. The time now is 08:33.