|
[Sponsors] |
April 30, 2012, 17:13 |
gcc (OpenFOAM 2.1.0 on CentOS 5)
|
#1 |
Member
Join Date: Apr 2012
Posts: 32
Rep Power: 14 |
Question:
Where to find rpm file of gcc4.3 or 4.4? I am installing 2.1.0 on CentOS 5 with yum-updated gcc 4.1.2. The error messages include Code:
mpi.h: No such file or directory http://www.openfoam.org/download/git.php that gcc-4.4.? is recommended but gcc-4.3.? is sufficient. |
|
April 30, 2012, 17:55 |
|
#2 |
Member
Join Date: Apr 2012
Posts: 32
Rep Power: 14 |
and how to set the environment?
Code:
export WM_COMPILER=/usr/bin/gcc44 |
|
April 30, 2012, 18:39 |
|
#3 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128 |
Greetings sukye and welcome to the forum!
Since you have CentOS, then it's best/easier for you to use CentFOAM: http://sourceforge.net/apps/mediawik...itle=Main_Page Best regards, Bruno
__________________
|
|
April 30, 2012, 19:20 |
|
#4 | |
Member
Join Date: Apr 2012
Posts: 32
Rep Power: 14 |
Thank you Bruno. You are always so helpful.
When I run python centFOAM.py --netgen, here is the error Code:
adding netgen-4.9.14-svn to .bashrc file for user running the script Traceback (most recent call last): File "centFOAM.py", line 338, in ? main() File "centFOAM.py", line 312, in main installNetgen(options.path, "4.9.14-svn",rel) File "centFOAM.py", line 135, in installNetgen writeStartNetgen(path, package, "netgen") File "centFOAM.py", line 39, in writeStartNetgen fileHandle = open ( fileName , 'w' ) IOError: [Errno 2] No such file or directory: '/home/sukye/centFOAM//netgen-4.9.14-svn/bin/start_netgen' Quote:
|
||
May 1, 2012, 06:56 |
|
#5 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128 |
Hi sukye,
Unfortunately I don't know the answer, but Linnemann should know the answer, since he's the one who has developed CentFOAM. In the mean time, you can read the following threads and perhaps ask again in the second one:
Bruno
__________________
|
|
May 1, 2012, 17:17 |
|
#6 |
Member
Join Date: Apr 2012
Posts: 32
Rep Power: 14 |
Thank you Bruno,
Here are steps I have made: 1. sudo python centFOAM.py --yum (yum only install 4.1.2 instead of 4.3 required by OF) 2. python centFOAM.py --nonOF 3. python centFOAM.py --OF21 (double slashes (incorrectly?): installing OpenFOAM-2.1.0 to /home/sujian/centFOAM//OpenFOAM/OpenFOAM-2.1.0 Folder does not exist, now creating if possible) Any further steps to complete the compilation? When ~/centFOAM/OpenFOAM/OpenFOAM-2.1.0>./Allwmake It says: ./Allwmake: line 4: wmakeCheckPwd: command not found Error: Current directory is not $WM_PROJECT_DIR but actually: >echo $WM_PROJECT_DIR ~/centFOAM/OpenFOAM/OpenFOAM-2.1.0 Thanks. |
|
May 1, 2012, 21:27 |
|
#7 |
Senior Member
Niels Nielsen
Join Date: Mar 2009
Location: NJ - Denmark
Posts: 556
Rep Power: 27 |
No need to compile when using CentFOAM it is already compiled for you.
__________________
Linnemann PS. I do not do personal support, so please post in the forums. |
|
May 2, 2012, 01:37 |
|
#8 |
Member
Join Date: Apr 2012
Posts: 32
Rep Power: 14 |
||
May 2, 2012, 01:47 |
|
#9 |
Senior Member
Niels Nielsen
Join Date: Mar 2009
Location: NJ - Denmark
Posts: 556
Rep Power: 27 |
you have to source the OF environment.
So open a new terminal as the user who installed OF and type OF21 that will source the OF environment using an alias to the OpenFOAM bashrc file. you can see the alias in your $HOME/.bashrc file of the user who installed using the centFOAM script.
__________________
Linnemann PS. I do not do personal support, so please post in the forums. |
|
May 2, 2012, 02:06 |
|
#10 |
Member
Join Date: Apr 2012
Posts: 32
Rep Power: 14 |
I followed your instruction and it works! Thank you Linnemann!
Last edited by sukye; May 2, 2012 at 11:44. |
|
May 5, 2012, 11:35 |
|
#11 | |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128 |
Greetings to all!
@Linnemann: sukye had problems using paraFoam - which you do indeed describe about on the wiki: Quote:
Best regards, Bruno
__________________
|
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Superlinear speedup in OpenFOAM 13 | msrinath80 | OpenFOAM Running, Solving & CFD | 18 | March 3, 2015 06:36 |
Installation problem: openfoam 2.1.0 on opensuse 11.4 | raphael7 | OpenFOAM Installation | 4 | April 12, 2012 08:10 |
[SOLVED] Intel Compiler 12.1 + Ubuntu 11.10 (gcc 4.6) + OpenFOAM 2.0.x | wyldckat | OpenFOAM Installation | 0 | November 4, 2011 15:52 |
New OpenFOAM Forum Structure | jola | OpenFOAM | 2 | October 19, 2011 07:55 |
OpenFOAM 1.6 package - CentOS 5.3 x86_64 | linnemann | OpenFOAM Installation | 36 | September 2, 2009 13:46 |