Install OpenFOAM 2.1.x on ubuntu 22.04
3 Attachment(s)
Dear all,
I am trying to reactivate some self-made rather old OF solver, originally implemented with OF 2.1.x. My rough plan is first to compile OF 2.1.x to ensure the solver is working prior to thinking of re-implementation the solver in a up-to-date OF framework. Since my current system is Ubuntu 22.04 and since OF 2.1 is pretty old, I experience several complications. Several per-requisite packages available for Ubuntu 22.04 seem to be way too modern for OF 2.1. Since I couldn't find precompiled packages old enough for OF 2.1, I decided to locally compile the required packages. Therefore I used following list: https://github.com/OpenFOAM/ThirdParty-2.1.x I tried to compile GCC 4.6.1 and also the latest GCC-4 version 4.9.4 and both wasn't successful. Trying to compile GCC 4.6.1 failed on my system with following error: Code:
In file included from /home/ilya/OpenFOAM/ThirdParty-2.1.x/gcc-4.6.1/libgcc/../gcc/unwind-dw2.c:333:0: Trying to compile GCC 4.9.4 as an alternative failed with following error: Code:
checking for gmp.h... no Code:
--------------- Cheers |
Good morning,
I have tried this with Ubuntu 20.4 and wasnt able to solve that. It was really time consuming and the outcome was nothing. One thing I would give a try, is to use a virtual machine with an older ubuntu version and installing OF on that version |
I used OpenFOAM 2.1.1 in Ubuntu 16.04 and it worked fine. Versions higher than 16.04 cause serious compatibility issues.*
Install compatible Ubuntu versions for OF 2.1.x in the virtual box.* |
Thanks a lot überschwupper and Kummi,
Could you please also explain what are the advantages and the disadvantages of installing 16.04 in a virtual machine versus usual installation on a separate partition? Cheers |
Quote:
Assuming you're running Windows or a Linux-based higher-version operating system on your computer. So, instead of installing and rebooting Ubuntu 16.04, install a software called Virtual Box. This software is a separate machine that helps you install any OS within the software without affecting your main computer. However, you need to allocate some memory space and RAM for it. Thank you |
Both options have their advantages and disadvantages, you can find them via a quick google research.
Lower ubuntu versions may be out of support and there are some security risks because of that. I would go for a VM set up, especially when you are calculating on a different device. Far more comfortable and you are able to work on your main OS with your applications |
You can install openfoam and gcc with apt-get see https://openfoam.org/download/8-ubuntu/. beset
|
All times are GMT -4. The time now is 21:29. |