|
[Sponsors] |
[OpenFOAM.org] Installing OpenFOAM-4.x on a cluster always stops at a particular point |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
June 21, 2019, 05:49 |
Installing OpenFOAM-4.x on a cluster always stops at a particular point
|
#1 |
Senior Member
Ruiyan Chen
Join Date: Jul 2016
Location: Hangzhou, China
Posts: 162
Rep Power: 10 |
Hello Foamers,
Here's the problem I'm facing. I have installed (and used) OpenFOAM-4.x on a local server and a cluster without any problem, now I want to test it on another cluster, but it always failed at the exact same spot. My local server is running Gcc-4.8.2, other third-party softwares are flex-2.5.35, cmake-3.2.1, Qt-4.8.7, and mpirun-1.5.4. On the cluster, since they already have some of these packages (with higher versions), I used those that are available. The compiler is Gcc-4.8.5, cmake, flex and mpirun with higher versions, and no Qt. My error message is as follows: make: *** No rule to make target '\', needed by 'my home directory/OpenFOAM/OpenFOAM-4.x/platforms/linux64GccDPInt32Opt/src/OpenFOAM/primitives/globalIndexAndTransform/globalIndexAndTransform.C.dep'. Stop. I followed the steps here (https://openfoam.org/download/source...r-compilation/) and the compilation went on for like 50 minutes. On the website it is said a parallel compilation on 8 cores (which was what I did on the cluster) should take about an hour, which means the compilation on the cluster was near the end. I suspect this is a version problem, but how can the version of the compiler or other third-party softwares affect the compilation? Also, do we need Qt for openfoam compilation? I've always in the mind that to install OpenFOAM we only need a compiler, cmake, flex and openmpi, other softwares are all included in the ThirdParty directory, anything else we need? Thanks in advance. Ruiyan |
|
June 24, 2019, 17:17 |
|
#2 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Quick questions:
__________________
|
|
June 25, 2019, 23:12 |
|
#3 |
Senior Member
Ruiyan Chen
Join Date: Jul 2016
Location: Hangzhou, China
Posts: 162
Rep Power: 10 |
Hi Bruno,
Thank you for offering the help! I've seen you helping so many people on this forum and you guys made the forum where it is now. As for my issue, seems like I wasn't able to reproduce the issue, but still when I recompiled the source code I got into problems. Here's what I did. I'm using RedHat 4.8.5-11, the system comes with gcc-4.8.5. Before compiling OpenFOAM, I added cmake, flex and openmpi through the $HOME/.bashrc file, and sourced OpenFOAM. The cmake, flex and openmpi are already compiled on the cluster, so what I did was just to add them by using a simple module management system. In this case they use "module load cmake" and "module unload cmake" to add/remove a specific module. The thing is, now I can only use the existing ones with a certain version number. In my case, the cluster comes with cmake-3.12.3, flex-2.6.4 and openmpi-2.1.2. Then I went into the ThirdParty-4.x directory and compiled the source code, and went into the OpenFOAM-4.x directory and compiled using 8 cores. You can find the log.make file in the attachment. I do have a quick question, are cmake, flex and openmpi enough for compiling OpenFOAM? Do we need anything else (other than a compiler of course)? Thanks, Ruiyan |
|
July 9, 2019, 20:04 |
|
#4 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Quick answers: Sorry for the late reply.
Looking at the log file, here is the list of problems:
edit: To answer your question: I don't remember if Bison is needed for compiling OpenFOAM 4.x... but it might be necessary. Beyond that, I believe that development files for "zlib" are the only missing files. Last edited by wyldckat; July 9, 2019 at 20:06. Reason: see "edit:" |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Map of the OpenFOAM Forum - Understanding where to post your questions! | wyldckat | OpenFOAM | 10 | September 2, 2021 06:29 |
[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 |
How to setup a simple OpenFOAM cluster? | TommiPLaiho | OpenFOAM Installation | 3 | October 27, 2013 16:15 |
Parallel cluster solving with OpenFoam? P2P Cluster? | hornig | OpenFOAM Programming & Development | 8 | December 5, 2010 17:06 |
[Gmsh] Gmsh and samplesurface | touf | OpenFOAM Meshing & Mesh Conversion | 2 | December 10, 2007 03:27 |