|
[Sponsors] |
Question on specify gcc compiler for OpenFOAM 15 |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
October 1, 2008, 23:21 |
Hi All,
I tried to install
|
#1 |
New Member
zlai
Join Date: Mar 2009
Posts: 2
Rep Power: 0 |
Hi All,
I tried to install OpenFOAM 1.5 from source on my CentOS operation system. Following the instructions in README, I added the OpenFOAM environment setting into my shell file and sourced it. But I noticed an warning message appears which means the proper gcc compiler for OpenFOAM is missing. " Warning in /home/zlai/LZG/projects/OpenFOAM/OpenFOAM-1.5/etc/settings.sh: Cannot find /home/zlai/LZG/projects/OpenFOAM/ThirdParty/gcc-4.3.1/platforms/linux installation. Please install this compiler version or if you wish to use the system compiler, change the WM_COMPILER_INST setting to 'System' in this file" Now I have installed the GCC 4.3.1 into the ThirdParty folder with a folder name gcc-4.3.1. But I got confused with how to let the setting.sh file know this version of GCC I just installed. It looks like the path to the compiler is pointing to the " .../gcc-4.3.1/platforms/linux". But I could not find it in the GCC 4.3.1 I installed. Does anybody can help me with this? Thanks! |
|
October 2, 2008, 05:13 |
try move your OPENFOAM folder
|
#2 |
Senior Member
Hua Zen
Join Date: Mar 2009
Posts: 138
Rep Power: 17 |
try move your OPENFOAM folder from
/home/zlai/LZG/projects/OpenFOAM to /home/zlai/OpenFOAM |
|
October 2, 2008, 08:20 |
No, I add a path in shell file
|
#3 |
New Member
zlai
Join Date: Mar 2009
Posts: 2
Rep Power: 0 |
No, I add a path in shell file for the FOAM_INT_DIR as wrote in README, so it's OK for me to put the source file in "/home/zlai/LZG/projects/OpenFOAM", while the "PROJECT_USER_DIR" will be created in #HOME.
My question is how to let OpenFOAM 1.5 use the GCC 4.3.1 I have installed in ThirdParty folder. Actually, I know the following part of script in "setting.sh" is related to the compiler choose "case "$WM_COMPILER_INST" in OpenFOAM) case "$WM_COMPILER" in Gcc) export WM_COMPILER_DIR=$WM_THIRD_PARTY_DIR/gcc-4.3.1/platforms/$WM_ARCH$WM_COMPILER_ARC H ;; Gcc42) export WM_COMPILER_DIR=$WM_THIRD_PARTY_DIR/gcc-4.2.4/platforms/$WM_ARCH$WM_COMPILER_ARC H ;; esac ... ... ... " I just don't know how to modify the directory ".../gcc-4.3.1/platforms/$WM_ARCH$WM_COMPILER_ARCH" to be my one. Thanks you for your suggestion. |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[blockMesh] CheckMesh error using a tutorial from OpenFOAM 114 with openFOAM 13 | martapajon | OpenFOAM Meshing & Mesh Conversion | 7 | January 21, 2008 13:52 |
Compiler in OpenFoam | gulp | OpenFOAM Installation | 4 | October 27, 2007 12:36 |
OpenFOAM users in Munich OpenFOAM benutzer in M%c3%bcnchen | jaswi | OpenFOAM | 0 | August 3, 2007 14:11 |
OpenFOAM installation on AIX 53 with gnu 40 compiler | chauvin | OpenFOAM Installation | 3 | June 15, 2006 14:12 |
A new Howto on the OpenFOAM Wiki Compiling OpenFOAM under Unix | mbeaudoin | OpenFOAM Installation | 2 | April 28, 2006 09:54 |