|
[Sponsors] |
[OpenFOAM.org] OpenFOAM - 2.2.0 installation on Ubuntu 16.04 |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
November 22, 2019, 07:21 |
OpenFOAM - 2.2.0 installation on Ubuntu 16.04
|
#1 |
Member
L S
Join Date: Apr 2016
Posts: 63
Rep Power: 10 |
Dear All,
I followed the instructions to install OpenFOAM-2.2.0 as given below in link for Ubuntu 13.10. https://openfoamwiki.net/index.php/I...M-2.2.0/Ubuntu But, it resulted in error. Can someone suggest me how to install OpenFOAM-2.2.0 on Ubuntu 16.04? |
|
November 22, 2019, 23:37 |
|
#2 |
Member
Glenn Carlson, PE, PhD (ret)
Join Date: Oct 2012
Location: US
Posts: 49
Rep Power: 14 |
What is the error?
|
|
November 23, 2019, 00:35 |
Error Message while installing
|
#3 |
New Member
Sabrina Carson
Join Date: May 2018
Posts: 15
Rep Power: 8 |
Thank you for replying.
My apologies. But it is ubuntu 18.04 and not 16.04. I have attached the log.make file along with this post. The error started way before, but the error message seen at the end is like this: Code:
collect2: error: ld returned 1 exit status make[2]: *** [/home/silyi/OpenFOAM/OpenFOAM-2.2.0/platforms/linux64GccDPOpt/bin/twoPhaseEulerFoam] Error 1 make[1]: *** [twoPhaseEulerFoam] Error 2 make[1]: Target 'application' not remade because of errors. make: *** [multiphase] Error 2 make: Target 'application' not remade because of errors. Last edited by sabrinacarson; November 23, 2019 at 02:49. Reason: Attachment |
|
November 26, 2019, 14:04 |
|
#4 |
Member
Torsten Schenkel
Join Date: Jan 2014
Posts: 69
Rep Power: 12 |
Hi Sabrina,
the actual error is above the snippet you posted. I assume it is missing a library and that is causing the compilation of the application twoPhaseEulerFlow to fail. Very often that library is mpi, so check if there is a "mpi.h missing" somewhere in the path. I usually use foam-extend, but from memory, openfoam will need ThirdParty to be compiled before the actual openfoam compilation (as that will provide the included mpi libs). Another problem with compiling such an old version (2.2) on a relatively modern system (18.04) is that the compiler won't be compatible: I assume openfoam will need gcc 4, while ubuntu 18.04 has gcc 7 as default. If you check https://openfoamwiki.net/index.php/I...ibility_Matrix you will see that 2.2.0 will work with 4.7. Unfortunately the oldest gcc that U18.04 supports is 4.8. But you can try working with that. Or hunt down an old version of Ubuntu. If all fails, OF does come with a gcc provided, which you can try to compile with the more modern one, so e.g. 4.7 compiled with 4.8. If you need this to keep working, it may be worth porting the whole solver to OpenFoam-7. Could you try 2.2.2? That one has been tested with gcc 4.8. |
|
November 26, 2019, 23:10 |
|
#5 | |
New Member
Sabrina Carson
Join Date: May 2018
Posts: 15
Rep Power: 8 |
Quote:
https://openfoamwiki.net/index.php/I...M-2.2.2/Ubuntu Still I got the same error as explained for OpenFOAM 2.2.0. My institution has latest hardware and multiple users. The admin has refused to reduce the ubuntu version to any lower one. The GCC version in the system is 7.4.0. I have been left with no choice. Since, I am not good with fixing bugs, it would be of great help, if you can show me a way how to compile the OpenFOAM-2.2.0 with the older version GCC 4.7.x. |
||
November 27, 2019, 06:44 |
|
#6 |
Member
Torsten Schenkel
Join Date: Jan 2014
Posts: 69
Rep Power: 12 |
Hi,
If you do not have root access to your system, you will need to get your sysadmin to install gcc-4.8 for you. This should not be a big deal, as it is available in the Ubuntu packaging system, so a simple apt-get install gcc-4.8 g++-4.8 should do it. Then you can try Bruno's instructions again. If 2.2.0 doesn't like 4.8, then you'll have to ask sysadmin to provide you with 4.7, which they'd need to compile themselves: https://openfoamwiki.net/index.php/I...alling_GNU_Gcc But at the moment, this is all gueswork, since you have not provided the actual error message you get. Can you post a link to the whole log file after running the compilation like: ./Allwmake | tee log.Allwmake You can also try and compile gcc-4.7 as a user, installing it in your user home directory and then adjust paths. But this can get tricky quite quickly. You'll have to learn a lot about Linux or find your local Linux wizard for that. |
|
November 29, 2019, 12:38 |
|
#7 |
Senior Member
Herpes Free Engineer
Join Date: Sep 2019
Location: The Home Under The Ground with the Lost Boys
Posts: 931
Rep Power: 13 |
EDIT: if you share your solver, I can try to compile it for you in OF1906 which works smoothly on new operating systems.
__________________
The OpenFOAM community is the biggest contributor to OpenFOAM: User guide/Wiki-1/Wiki-2/Code guide/Code Wiki/Journal Nilsson/Guerrero/Holzinger/Holzmann/Nagy/Santos/Nozaki/Jasak/Primer Governance Bugs/Features: OpenFOAM (ESI-OpenCFD-Trademark) Bugs/Features: FOAM-Extend (Wikki-FSB) Bugs: OpenFOAM.org How to create a MWE New: Forkable OpenFOAM mirror |
|
November 29, 2019, 13:51 |
phaseChangeHeatFoam
|
#8 | |
Member
L S
Join Date: Apr 2016
Posts: 63
Rep Power: 10 |
Quote:
https://github.com/NimaSam/phaseChangeHeatFoam |
||
November 29, 2019, 14:26 |
|
#9 |
Senior Member
Herpes Free Engineer
Join Date: Sep 2019
Location: The Home Under The Ground with the Lost Boys
Posts: 931
Rep Power: 13 |
after the weekend, I'm dead now.
Will let you know.
__________________
The OpenFOAM community is the biggest contributor to OpenFOAM: User guide/Wiki-1/Wiki-2/Code guide/Code Wiki/Journal Nilsson/Guerrero/Holzinger/Holzmann/Nagy/Santos/Nozaki/Jasak/Primer Governance Bugs/Features: OpenFOAM (ESI-OpenCFD-Trademark) Bugs/Features: FOAM-Extend (Wikki-FSB) Bugs: OpenFOAM.org How to create a MWE New: Forkable OpenFOAM mirror |
|
December 4, 2019, 17:43 |
|
#10 |
Senior Member
Herpes Free Engineer
Join Date: Sep 2019
Location: The Home Under The Ground with the Lost Boys
Posts: 931
Rep Power: 13 |
This weekend, I will try to compile it for you. Bear with me. My apologies for the delay.
__________________
The OpenFOAM community is the biggest contributor to OpenFOAM: User guide/Wiki-1/Wiki-2/Code guide/Code Wiki/Journal Nilsson/Guerrero/Holzinger/Holzmann/Nagy/Santos/Nozaki/Jasak/Primer Governance Bugs/Features: OpenFOAM (ESI-OpenCFD-Trademark) Bugs/Features: FOAM-Extend (Wikki-FSB) Bugs: OpenFOAM.org How to create a MWE New: Forkable OpenFOAM mirror |
|
December 4, 2019, 23:23 |
|
#11 |
New Member
Sabrina Carson
Join Date: May 2018
Posts: 15
Rep Power: 8 |
The wait will be worth it, if it gets compiled.
|
|
December 12, 2019, 07:02 |
|
#12 |
Member
L S
Join Date: Apr 2016
Posts: 63
Rep Power: 10 |
Hi,
Did you get any success compiling the solver for any latest version of OpenFOAM? |
|
Tags |
error, installation, openfoam 2.2.0 |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[OpenFOAM.org] Error in installation of OpenFoam 2.2.0 into Ubuntu 16.04 | rupak504 | OpenFOAM Installation | 1 | July 10, 2018 03:37 |
[OpenFOAM.com] Installation of OpenFOAM 1.7.1 on Ubuntu 16.04 | MM_Khan | OpenFOAM Installation | 11 | September 3, 2017 10:22 |
OpenFoam wave2Foam installation on Ubuntu | jdttl | CFD Freelancers | 1 | June 17, 2016 07:52 |
Problem? with Installation of OpenFOAM 2.1.0 on to Ubuntu 10.4.4 VirtualBox | Stubby | OpenFOAM Installation | 8 | March 5, 2012 16:12 |
openFOAM installation in ubuntu 11.10 | kirubhakaran | OpenFOAM Installation | 5 | February 17, 2012 03:16 |