CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Installation (https://www.cfd-online.com/Forums/openfoam-installation/)
-   -   [OpenFOAM.org] OpenFoam installation on CentOs 6.5 without root access (https://www.cfd-online.com/Forums/openfoam-installation/167728-openfoam-installation-centos-6-5-without-root-access.html)

Wang Wei June 10, 2016 03:19

Hi,Chariton, below is the commands I used in compiling openfoam v3.0.1 in my /home directory.
Quote:

1. mkdir OpenFOAM
cd OpenFOAM
wget "http://downloads.sourceforge.net/foam/OpenFOAM-3.0.1.tgz?use_mirror=mesh" -O OpenFOAM-3.0.1.tgz
wget "http://downloads.sourceforge.net/foam/ThirdParty-3.0.1.tgz?use_mirror=mesh" -O ThirdParty-3.0.1.tgz

tar -xzf OpenFOAM-3.0.1.tgz
tar -xzf ThirdParty-3.0.1.tgz

2. module load openmpi/intel/1.10.2 || export PATH=$PATH:/usr/lib64/openmpi/bin

export LD_LIBRARY_PATH=/usr/lib64/openmpi/lib/:$LD_LIBRARY_PATH

3. source $HOME/OpenFOAM/OpenFOAM-3.0.1/etc/bashrc WM_LABEL_SIZE=64 foamCompiler=system

4. echo "alias of301='module load openmpi/intel/1.10.2; source \$HOME/OpenFOAM/OpenFOAM-3.0.1/etc/bashrc $FOAM_SETTINGS'" >> $HOME/.bashrc

5. module load gcc/4.9.3

6. cd $WM_PROJECT_DIR
./Allwmake -j 4 > log.make 2>&1
./Allwmake -j 4 > log.make 2>&1
It works well, I can calculate my case using it, but there are fatal errors in log.make file like this

Quote:

In file included from ../conformalVoronoiMesh/lnInclude/CGALTriangulation3Ddefs.H:41:0,

from ../conformalVoronoiMesh/lnInclude/conformalVoronoiMesh.H:46,

from foamyHexMesh.C:36:

../conformalVoronoiMesh/lnInclude/CGALTriangulation3DKernel.H:36:43: fatal error: CGAL/Delaunay_triangulation_3.h: No such file or directory
#include "CGAL/Delaunay_triangulation_3.h"
^
compilation terminated.
make[2]: *** [/home/nus/e0013038/OpenFOAM/OpenFOAM-3.0.1/platforms/linux64GccDPInt64Opt/applications/utilities/mesh/generation/foamyMesh/foamyHexMesh/foamyHexMesh.o] Error 1
make[1]: *** [generation] Error 2
make[1]: *** Waiting for unfinished jobs....
I don't know what's the purpose of CGAL.

CHAYANIT January 31, 2018 05:08

Quote:

Originally Posted by wyldckat (Post 588541)
Quick question: Have you tried following the instructions given here: http://openfoamwiki.net/index.php/In...HEL#CentOS_6.5 :confused:
If not, then since you do not have root access, you can skip the first 3 steps.

And since you're trying to install on a cluster, you can also skip steps 16 to 18.

I also want to install openfoam in centOS with no root access and I also skiiped the first three steps. But the system shows the following error with .tar file.
[chayanit@un03 OpenFOAM]$ tar -xzf OpenFOAM-2.3.0.tgz

gzip: stdin: not in gzip format
tar: Child returned status 1
tar: Error is not recoverable: exiting now

svramana December 10, 2018 06:00

Hi everyone, I'm also trying to install OF5.0 on my institute cluster in home folder. I also don't have root access. I have followed all the instruction given in this link, https://openfoam.org/download/5-0-source/. After running ./Allwake command I'm getting following error
In file included from UOPwrite.C:30:0:
PstreamGlobals.H:42:17: fatal error: mpi.h: No such file or directory
#include <mpi.h>
^
compilation terminated.
make: *** [/data/me16d023/OpenFOAM/OpenFOAM-5.0/platforms/linux64GccDPInt32OptSYSTEMOPENMPI/src/Pstream/mpi/UOPwrite.o] Error 1

Anybody have solution ? Please help me.

wyldckat December 16, 2018 15:18

Quick answer: The Institute cluster should have a way to load/activate the MPI version that could be used with OpenFOAM. My guess is that if you run the following command:
Code:

module avail
you should get a complete list of the available modules in that cluster. Among them, search for one that states "openmpi" in some way. Then you can load the respective version, by using the associated name, for example, the name "openmpi/1.10.1" would be activated by running this command:
Code:

module load openmpi/1.10.1
then try building OpenFOAM once again.

svramana December 21, 2018 11:09

Thank you sir. It work for me.

Fahime September 11, 2019 05:26

Quote:

Originally Posted by elham usefi (Post 601909)
Hi I found the solution arsalan.dryi sent me the correct links
thanks :)

Hi Ebrahim
can you plz send me those links?
Thanks in advance

Madeinspace July 1, 2020 14:00

1 Attachment(s)
Quote:

Originally Posted by wyldckat (Post 588541)
Quick question: Have you tried following the instructions given here: http://openfoamwiki.net/index.php/In...HEL#CentOS_6.5 :confused:
If not, then since you do not have root access, you can skip the first 3 steps.

And since you're trying to install on a cluster, you can also skip steps 16 to 18.




Hi Bruno,


I followed your instructions to install OF3.0.1 on the cluster without root access given in this link.


https://openfoamwiki.net/index.php/I...CentOS_SL_RHEL


SInce the OS of my university cluster is CentOS Linux release 7.8.2003 (Core). I followed the post#3 i.e for CentOS 7.1

I skipped step 1, 2 and 3.
Step 4, 5, 6, 7 worked normally.



For step 8, I first loaded

Quote:

module load GCC/9.3.0 OpenMPI/4.0.3
based on the available MPI on the cluster as below


Quote:

$ module spider OpenMPI/4.0.3

---------------------------------------------------------------------------------------------------------------
OpenMPI: OpenMPI/4.0.3
---------------------------------------------------------------------------------------------------------------
Description:
The Open MPI Project is an open source MPI-3 implementation.


You will need to load all module(s) on any one of the lines below before the "OpenMPI/4.0.3" module is availabl
e to load.

GCC/9.3.0

Help:

Description
===========
The Open MPI Project is an open source MPI-3 implementation.


More information
================
- Homepage: https://www.open-mpi.org/
and executed
Quote:


module load GCC/9.3.0 OpenMPI/4.0.3 || export PATH=$PATH:/usr/lib64/openmpi/bin
I also changed the alias in step 8 accordingly


Quote:

echo "alias of301='module load GCC/9.3.0 OpenMPI/4.0.3; source \$HOME/OpenFOAM/OpenFOAM-3.0.1/etc/bashrc $FOAM_SETTINGS'" >> $HOME/.bashrc

Then I proceeded to compile further. I didn't have any error or warning. However. the final compilation with ./Allwmake failed.

The first error says

Quote:

error: static assertion failed: "MPI_Type_extent was removed in MPI-3.0. Use MPI_Type_get_extent instead."
322 | #define THIS_SYMBOL_WAS_REMOVED_IN_MPI30(func, newfunc) _Static_assert(0, #func " was removed in MPI-3.0. Use " #newfunc " instead.")
I have no idea what this means but I suspect it is from the loading of OpenMPI.

Would you please have a look at the log file of the compilation I have attached. I would sincerely appreciate your help.


Best regards,
James

FBR March 6, 2021 08:48

Hi,

I need to install openfoam6 on a cluster without root access. Is there any useful website to guide me?

Thanks

olesen March 6, 2021 11:31

Quote:

Originally Posted by FBR (Post 798058)
Hi,

I need to install openfoam6 on a cluster without root access. Is there any useful website to guide me?

Thanks

You generally don't need root access but will need development tools (gcc, make etc) and some basic development headers (eg for zlib).
Take a look at the wiki: https://develop.openfoam.com/Develop...wikis/building
Should be reasonably similar to what you need for the .org version.


All times are GMT -4. The time now is 16:46.