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

segmentation fault when installing OF-2.1.1 on a cluster

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

Reply
 
LinkBack Thread Tools Display Modes
Old   July 20, 2012, 10:26
Default segmentation fault when installing OF-2.1.1 on a cluster
  #1
Member
 
HD
Join Date: Jul 2011
Posts: 56
Rep Power: 6
Rebecca513 is on a distinguished road
Dear all,

I am trying to install OF-2.1.1 on a cluster. I have followed the instructions on the website: http://www.openfoam.org/download/source.php
but whenever I try to

source $HOME/OpenFOAM/OpenFOAM-2.1.1/etc/cshrc

It gives me error messages as follows.

Segmentation fault
Segmentation fault
Segmentation fault

Your '' operating system is not supported by this release
of OpenFOAM. For further assistance, please contact www.OpenFOAM.org

Segmentation fault
Segmentation fault
Segmentation fault
Segmentation fault


I have no root access, so it is under my own directory. and the system info is:
Linux version 2.6.18-308.11.1.el5
(gcc version 4.1.2 20080704 (Red Hat 4.1.2-52))

I don't know what I should do with this. Any help and suggestion are truly appreciated!

Thank you.

Best,

Hang
Rebecca513 is offline   Reply With Quote

Old   July 20, 2012, 21:26
Default
  #2
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,488
Blog Entries: 34
Rep Power: 86
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
Greetings Hang,

That's a really old system... anyway, for RHEL you should use the dedicated project CentFOAM: http://sourceforge.net/apps/mediawiki/centfoam/

Best regards,
Bruno
wyldckat is offline   Reply With Quote

Old   July 21, 2012, 03:07
Default
  #3
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
Its still el5 and its supported into 2014 so it will still be working nicely, we use Rocks 5 for some of our clusters.

But as Bruno says, my centFoam project will have you up and running pretty quickly.


If you want to compile your own OF you need to compile a newer GCC there are make scripts for that in the ThirdParty folder.

Otherwise you need to have gcc44 installed by yum, and then change gcc to gcc44 in the OF settings files.
__________________
Linnemann

PS. I do not do personal support, so please post in the forums.
linnemann is offline   Reply With Quote

Old   July 21, 2012, 06:34
Default
  #4
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,488
Blog Entries: 34
Rep Power: 86
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
I apologize for this comment:
Quote:
Originally Posted by wyldckat View Post
That's a really old system...
I got caught up in the fast paced releases of GCC and other technologies, that to me 2007 is already a long time ago : GCC 4.1.2 - February 13, 2007
wyldckat is offline   Reply With Quote

Old   July 21, 2012, 15:40
Default
  #5
Member
 
HD
Join Date: Jul 2011
Posts: 56
Rep Power: 6
Rebecca513 is on a distinguished road
Dear Bruno and Niels,

Thank you for your replies.

I will try to contact the cluster manager see if he could help me run 'python centFOAM.py --yum' as roots.

Niels, if I understand you correctly, after yum has been run, gcc will be updated to gcc44, and I will have to change OF settings before I run 'python centFOAM.py --OF21'. If by any chance I don't get access to root, I will not be able to use the python script for centFOAM to install OF. Instead, I need to compile a newer gcc using the makeGcc file in the Thirdparty directory, and then compile OpenFOAM manually.

Thank you again for your help.

Best,

Hang
Rebecca513 is offline   Reply With Quote

Old   July 22, 2012, 06:31
Default
  #6
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
Hi

No its the other way around.

CentFOAM assumes you dont have gcc44 intalled and comes with its own gcc in the Thridparty folder.

What I meant was that if you want to compile yourself using only system gcc you need gcc44 installed by yum.

You can always compile your own newer gcc in the Thirdparty folder and there are numerous howtos on this forum on how to do that.
__________________
Linnemann

PS. I do not do personal support, so please post in the forums.
linnemann is offline   Reply With Quote

Old   July 22, 2012, 20:43
Default
  #7
Member
 
HD
Join Date: Jul 2011
Posts: 56
Rep Power: 6
Rebecca513 is on a distinguished road
Hi Niels,

Thank you for the clarification.

I will try the script first see if it works. If not, I will try to compile myself.

Thank you~

Best,

Hang
Rebecca513 is offline   Reply With Quote

Old   July 25, 2012, 13:59
Default
  #8
Member
 
HD
Join Date: Jul 2011
Posts: 56
Rep Power: 6
Rebecca513 is on a distinguished road
Dear Niels,

I have successfully installed centFOAM on the cluster, seems that the cshrc is broken, but once I switched to bshrc, I could get it to work.

But when I try to use parallel computing, it gives me the error saying that unable to open '.../Thirdparty-2.1.1/platforms/linux64Gcc/openmpi-1.5.3/lib/....', I was wondering if I need to install and compile openmpi separately. Or it is already in centFOAM package, I just need to use different commands than 'mpirun -np 4 simpleFoam -parallel > log'.

Thank you~

Best,

Hang
Rebecca513 is offline   Reply With Quote

Old   July 25, 2012, 14:05
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
Hi

No that is not necessary, openmpi is part of centFOAM.

Could you try to cd/browse to that folder manually and see if it exists?

If the files are present the folder permissions could be wrong.
__________________
Linnemann

PS. I do not do personal support, so please post in the forums.
linnemann is offline   Reply With Quote

Old   July 31, 2012, 15:06
Default
  #10
Member
 
HD
Join Date: Jul 2011
Posts: 56
Rep Power: 6
Rebecca513 is on a distinguished road
Thank you~

Turned out that openmpi in the package is not consistent with the set-up of the cluster system, with help of the support group, I got it work now.

Best,

Hang
Rebecca513 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
Segmentation Fault Shawn_A OpenFOAM Running, Solving & CFD 6 October 31, 2011 15:38
Segmentation fault when running dieselFoam or dieselEngineFoam in parallel francesco OpenFOAM Bugs 3 June 10, 2011 09:30
forrtl: severe (174): SIGSEGV, segmentation fault occurred therockyy FLOW-3D 7 January 19, 2011 23:52
ParaView segmentation fault only for multiphase gwierink OpenFOAM 9 March 25, 2010 08:23
KIVA and Segmentation Fault Felix Main CFD Forum 2 January 18, 2006 02:24


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