CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Installation (https://www.cfd-online.com/Forums/openfoam-installation/)
-   -   How can I publish my build of OF-2.1.0 ? (https://www.cfd-online.com/Forums/openfoam-installation/101568-how-can-i-publish-my-build-2-1-0-a.html)

psfan May 8, 2012 01:13

How can I publish my build of OF-2.1.0 ?
 
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 ?

alberto May 8, 2012 02:29

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,

psfan May 8, 2012 20:50

Quote:

Originally Posted by alberto (Post 359851)
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.

olesen May 9, 2012 02:59

Quote:

Originally Posted by psfan (Post 359842)
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.


All times are GMT -4. The time now is 12:04.