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

[OpenFOAM.com] v1606+ Compiling/installing on ubuntu 14.04 - error

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 9, 2016, 17:04
Default v1606+ Compiling/installing on ubuntu 14.04 - error
  #1
New Member
 
anonymous
Join Date: Jul 2016
Posts: 4
Rep Power: 9
philm is on a distinguished road
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?
philm is offline   Reply With Quote

Old   September 11, 2016, 13:19
Default
  #2
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,974
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
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.
__________________
wyldckat 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
[blockMesh] blockMesh with double grading. spwater OpenFOAM Meshing & Mesh Conversion 92 January 12, 2019 09:00
DPM udf error haghshenasfard FLUENT 0 April 13, 2016 06:35
[swak4Foam] GroovyBC the dynamic cousin of funkySetFields that lives on the suburb of the mesh gschaider OpenFOAM Community Contributions 300 October 29, 2014 18:00
OpenFOAM without MPI kokizzu OpenFOAM Installation 4 May 26, 2014 09:17
DecomposePar links against liblamso0 with OpenMPI jens_klostermann OpenFOAM Bugs 11 June 28, 2007 17:51


All times are GMT -4. The time now is 05:34.