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

How can I publish my build of OF-2.1.0 ?

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread 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,912
Rep Power: 36
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 in both physical and virtual formats (current status: http://albertopassalacqua.com/?p=1541)
OpenQBMM - An open-source implementation of quadrature-based moment methods.

To obtain more accurate answers, please specify the version of OpenFOAM you are using.
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: https://olesenm.github.io/
Posts: 1,685
Rep Power: 40
olesen has a spectacular aura aboutolesen has a spectacular aura about
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


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
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 01:08.