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

gcc (OpenFOAM 2.1.0 on CentOS 5)

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   April 30, 2012, 16:13
Default gcc (OpenFOAM 2.1.0 on CentOS 5)
  #1
Member
 
Join Date: Apr 2012
Posts: 32
Rep Power: 5
sukye is on a distinguished road
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
It's mentioned in
http://www.openfoam.org/download/git.php
that gcc-4.4.? is recommended but gcc-4.3.? is sufficient.
sukye is offline   Reply With Quote

Old   April 30, 2012, 16:55
Default
  #2
Member
 
Join Date: Apr 2012
Posts: 32
Rep Power: 5
sukye is on a distinguished road
and how to set the environment?
Code:
export WM_COMPILER=/usr/bin/gcc44
is it all?
sukye is offline   Reply With Quote

Old   April 30, 2012, 17:39
Default
  #3
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,503
Blog Entries: 34
Rep Power: 86
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
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
wyldckat is offline   Reply With Quote

Old   April 30, 2012, 18:20
Default
  #4
Member
 
Join Date: Apr 2012
Posts: 32
Rep Power: 5
sukye is on a distinguished road
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'
Should I run --yum first, then --paraview etc. one by one?


Quote:
Originally Posted by wyldckat View Post
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
sukye is offline   Reply With Quote

Old   May 1, 2012, 05:56
Default
  #5
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,503
Blog Entries: 34
Rep Power: 86
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
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:
Best regards,
Bruno
wyldckat is offline   Reply With Quote

Old   May 1, 2012, 16:17
Default
  #6
Member
 
Join Date: Apr 2012
Posts: 32
Rep Power: 5
sukye is on a distinguished road
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.
sukye is offline   Reply With Quote

Old   May 1, 2012, 20:27
Default
  #7
Senior Member
 
linnemann's Avatar
 
Niels Nielsen
Join Date: Mar 2009
Location: NJ - Denmark
Posts: 451
Rep Power: 15
linnemann will become famous soon enough
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.
linnemann is offline   Reply With Quote

Old   May 2, 2012, 00:37
Default
  #8
Member
 
Join Date: Apr 2012
Posts: 32
Rep Power: 5
sukye is on a distinguished road
Thank you Linnemann.

But blockMesh and other functions do not work.


Quote:
Originally Posted by linnemann View Post
No need to compile when using CentFOAM it is already compiled for you.
sukye is offline   Reply With Quote

Old   May 2, 2012, 00:47
Default
  #9
Senior Member
 
linnemann's Avatar
 
Niels Nielsen
Join Date: Mar 2009
Location: NJ - Denmark
Posts: 451
Rep Power: 15
linnemann will become famous soon enough
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.
linnemann is offline   Reply With Quote

Old   May 2, 2012, 01:06
Default
  #10
Member
 
Join Date: Apr 2012
Posts: 32
Rep Power: 5
sukye is on a distinguished road
I followed your instruction and it works! Thank you Linnemann!

Last edited by sukye; May 2, 2012 at 10:44.
sukye is offline   Reply With Quote

Old   May 5, 2012, 10:35
Default
  #11
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,503
Blog Entries: 34
Rep Power: 86
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
Greetings to all!

@Linnemann: sukye had problems using paraFoam - which you do indeed describe about on the wiki:
Quote:
Originally Posted by sourceforge.net/apps/mediawiki/centfoam/index.php?title=Main_Page
To use Paraview with the new reader just create an empty file in your case folder "touch casename.foam" and open this file using Paraview.
Anyway, here is another hack for using paraFoam: paraView reader module build problem post #21

Best regards,
Bruno
wyldckat is offline   Reply With Quote

Reply

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On


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 07: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 06:55
OpenFOAM 1.6 package - CentOS 5.3 x86_64 linnemann OpenFOAM Installation 36 September 2, 2009 12:46


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