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

How can I publish my build of OF-2.1.0 ?

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

Reply
 
LinkBack Thread Tools Display Modes
Old   May 8, 2012, 01:13
Default How can I publish my build of OF-2.1.0 ?
  #1
New Member
 
John Smith
Join Date: May 2012
Posts: 2
Rep Power: 0
psfan is on a distinguished road
System: Centos 6.0, icc, ifort, intelmpi

The system administrator allows me to publish my binary build of OF-2.1.0 in directory /export/OpenFOAM. I compiled the source as a normal user "john", not a root. The problem is only user john, i.e. myself, can run the binary code, others will get "Segmentation fault" and exit code of "139". I have checked the shell enviroment variants, library path, MPI path, ..., ensure the other user's are the same as mine. The problem still exist. Who can help me ?
psfan is offline   Reply With Quote

Old   May 8, 2012, 02:29
Default
  #2
Senior Member
 
Alberto Passalacqua
Join Date: Mar 2009
Location: Ames, Iowa, United States
Posts: 1,894
Rep Power: 26
alberto will become famous soon enoughalberto will become famous soon enough
They could compile the same code you have, in case you can share it.

An easy alternative could be to build a statically linked executable with:

wmake exe

Best,
__________________
Alberto Passalacqua

GeekoCFD - A free distribution based on openSUSE 64 bit with CFD tools, including OpenFOAM. Available as live DVD/USB, hard drive image and virtual image.
OpenQBMM - An open-source implementation of quadrature-based moment methods
alberto is offline   Reply With Quote

Old   May 8, 2012, 20:50
Default
  #3
New Member
 
John Smith
Join Date: May 2012
Posts: 2
Rep Power: 0
psfan is on a distinguished road
Quote:
Originally Posted by alberto View Post
They could compile the same code you have, in case you can share it.

An easy alternative could be to build a statically linked executable with:

wmake exe

Best,
Thank you for your replying. Since many users on the cluster will use OpenFOAM, it's better to publish a binary code so that they needn't spend too much time to compile the source code individually. To build a statically linked executable is a good idea, I'll have a try. Thanks again.
psfan is offline   Reply With Quote

Old   May 9, 2012, 02:59
Default
  #4
Senior Member
 
Mark Olesen
Join Date: Mar 2009
Location: http://olesenm.github.io/
Posts: 777
Rep Power: 18
olesen will become famous soon enough
Quote:
Originally Posted by psfan View Post
System: Centos 6.0, icc, ifort, intelmpi

The system administrator allows me to publish my binary build of OF-2.1.0 in directory /export/OpenFOAM. I compiled the source as a normal user "john", not a root. The problem is only user john, i.e. myself, can run the binary code, others will get "Segmentation fault" and exit code of "139". I have checked the shell enviroment variants, library path, MPI path, ..., ensure the other user's are the same as mine. The problem still exist. Who can help me ?
Perhaps incorrect permissions on some files? You should ensure that everyone has read permission and can execute all directories and files that are meant to be executed:
Code:
chmod -R a+rX dir-name
Also make sure that there are no special libraries lurking in your $FOAM_USER_LIBBIN that are used by you, but not seen by the others.
olesen 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
OpenFoam 1.6-ext - RPM build errors preibie OpenFOAM 12 September 8, 2011 03:12
64bitrhel5 OF installation instructions mirko OpenFOAM Installation 2 August 12, 2008 18:07
mpich2 build for hpf taw Main CFD Forum 0 April 6, 2008 03:34
OpenFOAM build from source instructions tj22 OpenFOAM Installation 7 April 6, 2006 16:15
CFX Build 5 question... cfd guy CFX 6 June 19, 2001 22:38


All times are GMT -4. The time now is 02:11.