|
[Sponsors] |
[OpenFOAM.org] error installing OF4.1 on ubuntu 14.04 |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
February 24, 2017, 04:08 |
error installing OF4.1 on ubuntu 14.04
|
#1 |
New Member
Join Date: Mar 2016
Posts: 17
Rep Power: 10 |
Hello foamers,
I am installing OF4.1 on ubuntu 14.04. I have installed it according to the OpenFoamWiki (https://openfoamwiki.net/index.php/I...u#Ubuntu_14.04) There is already OF3.0.1 on my computer. But I installed it using 'alias' to source each version. So the two versions should work separately. But when I compile OF using './Allwmake'. There is always an error: Code:
In file included from lnInclude/CGALTriangulation3Ddefs.H:44:0, from DelaunayMeshTools/DelaunayMeshTools.H:45, from DelaunayMeshTools/DelaunayMeshTools.C:26: lnInclude/indexedCell.H:41:71: fatal error: CGAL/Delaunay_triangulation_cell_base_with_circumcenter_3.h: No such file or directory #include "CGAL/Delaunay_triangulation_cell_base_with_circumcenter_3.h" ^ compilation terminated. make[2]: *** [/home/dupeng/OpenFOAM/OpenFOAM-4.1/platforms/linux64GccDPInt64Opt/applications/utilities/mesh/generation/foamyMesh/conformalVoronoiMesh/DelaunayMeshTools/DelaunayMeshTools.o] Error 1 make[2]: Leaving directory `/home/dupeng/OpenFOAM/OpenFOAM-4.1/applications/utilities/mesh/generation/foamyMesh/conformalVoronoiMesh' make[1]: *** [generation] Error 2 make[1]: Leaving directory `/home/dupeng/OpenFOAM/OpenFOAM-4.1/applications/utilities/mesh' make: *** [mesh] Error 2 Code:
======================================== Start ThirdParty Allwmake ======================================== ======================================== Build MPI libraries if required ======================================== Build Scotch decomposition library scotch_6.0.3 /home/dupeng/OpenFOAM/ThirdParty-4.1/platforms/linux64GccDPInt64/scotch_6.0.3 scotch header in /home/dupeng/OpenFOAM/ThirdParty-4.1/platforms/linux64GccDPInt64/scotch_6.0.3/include scotch libs in /home/dupeng/OpenFOAM/ThirdParty-4.1/platforms/linux64GccDPInt64/lib ======================================== Build PTScotch decomposition library scotch_6.0.3 (uses MPI) /home/dupeng/OpenFOAM/ThirdParty-4.1/platforms/linux64GccDPInt64/scotch_6.0.3 ptscotch header in /home/dupeng/OpenFOAM/ThirdParty-4.1/platforms/linux64GccDPInt64/scotch_6.0.3/include/openmpi-system ptscotch libs in /home/dupeng/OpenFOAM/ThirdParty-4.1/platforms/linux64GccDPInt64/lib/openmpi-system ======================================== Build Metis decomposition optional component Metis was not found ======================================== Build CGAL Using system installation of CGAL ======================================== Done ThirdParty Allwmake ======================================== Last edited by wyldckat; March 22, 2017 at 18:52. Reason: Added [CODE][/CODE] markers |
|
March 20, 2017, 16:24 |
|
#2 |
Member
Lisandro Maders
Join Date: Feb 2013
Posts: 98
Rep Power: 13 |
Hello dupeng,
I have the same problem you had, but I am using openfoam 4.x version on ubuntu 14.04. Did you solve your problem? Regards, Lisandro Maders |
|
March 20, 2017, 16:42 |
|
#3 |
New Member
Join Date: Mar 2016
Posts: 17
Rep Power: 10 |
Lisandro Maders,
I haven't solved this problem yet. It seems that CGAL has been compiled for the previous version and it cannot be compiled again for the new version. Hope someone can help us! Regards, peng |
|
March 20, 2017, 17:46 |
|
#4 |
Member
Emre
Join Date: Nov 2015
Location: Izmir, Turkey
Posts: 97
Rep Power: 11 |
Hello,
I recently installed OpenFOAM v4.1 via https://openfoam.org/download/4-1-ubuntu/ on ubuntu 16.04 LTS. It worked like charm. Your and my ubuntu versions are not same, but I just wanted to post anyway. Good luck. |
|
March 21, 2017, 14:53 |
OpenFOAM 4.x compilation error in Ubuntu 14.04
|
#5 |
Member
Lisandro Maders
Join Date: Feb 2013
Posts: 98
Rep Power: 13 |
I hope so too Peng..
I will post my log.make files as well.. At a first view, no errors in the log.makeCM and in the log.makePV files, only in the log.make, in the OpenFOAM compilation. Looking forward for some answer, probably from Bruno Santos, who always save OF user's life haha. OBS: log.makePV was too large and I could not upload.. but it seems ok to me Regards, Lisandro Maders |
|
March 22, 2017, 19:11 |
|
#6 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Greetings to all!
I've gotten Lisandro's PM and I've taken a look at the installation instructions. My apologies for this issue and for not being able to look into this sooner. According to the history records in the wiki page for 4.0, I unfortunately did not use a clean installation of Ubuntu 14.04, which had Ubuntu's CGAL installation already in it. Problem is that I still have to confirm if this was the case or not. Therefore, for the time being, please do the following commands and hopefully this will build almost all of OpenFOAM's 4.1 and 4.x stack, but it will not build the meshers foamyHexMesh and foamyQuadMesh: Code:
cd $WM_PROJECT_DIR export QT_SELECT=qt4 ./Allwmake -j 4 -k > log.make 2>&1 I'll review and test again the instructions and fix them during next weekend, if all goes well. My apologies once again for this problem. This is one of my main expertises when it comes to OpenFOAM and somehow I missed this problem Best regards, Bruno
__________________
|
|
March 23, 2017, 10:00 |
|
#7 |
New Member
Join Date: Mar 2016
Posts: 17
Rep Power: 10 |
Hello Bruno Santos,
Your solution works great. Although I still get the error but everything works fine after the compilation. Maybe other foamers can also try the "-k" option when encounter similar problems during the installation. It will ignore some errors but they may not influence the use of openfoam. I also attached the log file for you to target the problem. The original file is too large, I just deleted something in the middle. I have another problem about function object here: strange performance of execFlowFunctionObjects can you also take a look if possible? Thanks. Regards, Peng |
|
March 25, 2017, 14:34 |
|
#8 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Hi Peng,
Thanks for log file. From what I can see, looks like it's just that CGAL was missing. OK, I've finished testing and revising the instructions for installing OpenFOAM 4.* on Ubuntu 14.04:
As for what exactly happened: from what I can vaguely remember, I only copied and adapted the instructions from OpenFOAM 3.0.* for Ubuntu 14.04 and didn't follow up with testing the build. This was likely because I didn't have enough time back then and ended up not testing later on . Best regards, Bruno |
|
March 26, 2017, 07:18 |
|
#9 |
New Member
Join Date: Mar 2016
Posts: 17
Rep Power: 10 |
Thanks Bruno,
Your solution works perfect. Regards, Peng |
|
October 15, 2018, 03:46 |
|
#10 | |
New Member
caduqued
Join Date: Apr 2009
Location: UK
Posts: 16
Rep Power: 17 |
Thanks a lot Bruno!!!!!
I used your instruction for an installation under Slackware, and it worked really well. Thanks! Quote:
|
||
Tags |
installation, of 4.1 |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[OpenFOAM.org] OpenFOAM 3.0.1 installation on Ubuntu 14.04 | Hrushi | OpenFOAM Installation | 6 | July 8, 2017 19:47 |
Problem installing OpenFOAM-1.6-ext on Ubuntu 14.04 | afrotimy | OpenFOAM Installation | 4 | October 4, 2014 12:36 |
I cant find openfoam for ubuntu 14.04 LTS | seju | OpenFOAM Installation | 15 | August 30, 2014 13:07 |
Installing 2.3.0 on Ubuntu 14.04 LTS | siw | OpenFOAM Installation | 6 | July 5, 2014 07:16 |
foam-extend-3.0 installation in Ubuntu 14.04 | Maimouna | OpenFOAM Installation | 2 | May 16, 2014 12:23 |