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

gcc (OpenFOAM 2.1.0 on CentOS 5)

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 30, 2012, 17:13
Default gcc (OpenFOAM 2.1.0 on CentOS 5)
  #1
Member
 
Join Date: Apr 2012
Posts: 32
Rep Power: 14
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, 17:55
Default
  #2
Member
 
Join Date: Apr 2012
Posts: 32
Rep Power: 14
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, 18:39
Default
  #3
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
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
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, 19:20
Default
  #4
Member
 
Join Date: Apr 2012
Posts: 32
Rep Power: 14
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, 06:56
Default
  #5
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
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
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, 17:17
Default
  #6
Member
 
Join Date: Apr 2012
Posts: 32
Rep Power: 14
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, 21:27
Default
  #7
Senior Member
 
linnemann's Avatar
 
Niels Nielsen
Join Date: Mar 2009
Location: NJ - Denmark
Posts: 556
Rep Power: 27
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, 01:37
Default
  #8
Member
 
Join Date: Apr 2012
Posts: 32
Rep Power: 14
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, 01:47
Default
  #9
Senior Member
 
linnemann's Avatar
 
Niels Nielsen
Join Date: Mar 2009
Location: NJ - Denmark
Posts: 556
Rep Power: 27
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, 02:06
Default
  #10
Member
 
Join Date: Apr 2012
Posts: 32
Rep Power: 14
sukye is on a distinguished road
I followed your instruction and it works! Thank you Linnemann!

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

Old   May 5, 2012, 11:35
Default
  #11
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
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
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: http://www.cfd-online.com/Forums/ope...tml#post359479 post #21

Best regards,
Bruno
__________________
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
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


All times are GMT -4. The time now is 03:56.