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

[OpenFOAM.org] OpenFoam installation on CentOs 6.5 without root access

Register Blogs Community New Posts Updated Threads Search

Like Tree6Likes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 10, 2016, 04:19
Default
  #21
New Member
 
Wang Wei
Join Date: Apr 2016
Posts: 11
Rep Power: 10
Wang Wei is on a distinguished road
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.
Wang Wei is offline   Reply With Quote

Old   January 31, 2018, 06:08
Default
  #22
New Member
 
Chayanit Nigaltia
Join Date: Jan 2018
Posts: 29
Rep Power: 8
CHAYANIT is on a distinguished road
Quote:
Originally Posted by wyldckat View Post
Quick question: Have you tried following the instructions given here: http://openfoamwiki.net/index.php/In...HEL#CentOS_6.5
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
CHAYANIT is offline   Reply With Quote

Old   December 10, 2018, 07:00
Default
  #23
Member
 
Ramana
Join Date: Jul 2017
Location: India
Posts: 58
Rep Power: 9
svramana is on a distinguished road
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.
svramana is offline   Reply With Quote

Old   December 16, 2018, 16:18
Default
  #24
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
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.
__________________
wyldckat is offline   Reply With Quote

Old   December 21, 2018, 12:09
Default
  #25
Member
 
Ramana
Join Date: Jul 2017
Location: India
Posts: 58
Rep Power: 9
svramana is on a distinguished road
Thank you sir. It work for me.
svramana is offline   Reply With Quote

Old   September 11, 2019, 06:26
Default
  #26
New Member
 
Fahime Firoozpour
Join Date: Jan 2018
Posts: 10
Rep Power: 8
Fahime is on a distinguished road
Quote:
Originally Posted by elham usefi View Post
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
Fahime is offline   Reply With Quote

Old   July 1, 2020, 15:00
Default
  #27
Member
 
James
Join Date: Jan 2014
Posts: 38
Rep Power: 12
Madeinspace is on a distinguished road
Quote:
Originally Posted by wyldckat View Post
Quick question: Have you tried following the instructions given here: http://openfoamwiki.net/index.php/In...HEL#CentOS_6.5
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
Attached Files
File Type: txt logWyld.txt (81.2 KB, 2 views)

Last edited by Madeinspace; July 1, 2020 at 20:35.
Madeinspace is offline   Reply With Quote

Old   March 6, 2021, 09:48
Default
  #28
FBR
New Member
 
FBR
Join Date: Jan 2021
Posts: 1
Rep Power: 0
FBR is on a distinguished road
Hi,

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

Thanks
FBR is offline   Reply With Quote

Old   March 6, 2021, 12:31
Default
  #29
Senior Member
 
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,714
Rep Power: 40
olesen has a spectacular aura aboutolesen has a spectacular aura about
Quote:
Originally Posted by FBR View Post
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.
olesen is offline   Reply With Quote

Reply

Tags
centos, installation of openfoam, root access


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
How to contribute to the community of OpenFOAM users and to the OpenFOAM technology wyldckat OpenFOAM 17 November 10, 2017 16:54
[OpenFOAM.org] OpenFOAM 2.4.x on CentOS 6.5 kpsl OpenFOAM Installation 2 July 27, 2015 07:50
[OpenFOAM.org] How to get OpenFoam compiled on a cluster with CentOS 6.5 and no root permissions hulli OpenFOAM Installation 2 November 6, 2014 19:01
OpenFOAM 1.5.x package - CentOS 5.3 x86_64 linnemann OpenFOAM Installation 7 July 30, 2009 04:14
OpenFOAM 15 and CentOS 52 installation issues remrich OpenFOAM Bugs 9 March 20, 2009 02:48


All times are GMT -4. The time now is 06:29.