|
[Sponsors] |
[OpenFOAM.com] Install OpenFOAM 2.1.x on ubuntu 22.04 |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
August 29, 2022, 09:32 |
Install OpenFOAM 2.1.x on ubuntu 22.04
|
#1 |
New Member
I. L.
Join Date: Aug 2022
Location: Germany
Posts: 5
Rep Power: 3 |
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: /home/ilya/OpenFOAM/ThirdParty-2.1.x/gcc-4.6.1/libgcc/../gcc/config/i386/linux-unwind.h: In function ‘x86_64_fallback_frame_state’: /home/ilya/OpenFOAM/ThirdParty-2.1.x/gcc-4.6.1/libgcc/../gcc/config/i386/linux-unwind.h:54:47: error: dereferencing pointer to incomplete type Trying to compile GCC 4.9.4 as an alternative failed with following error: Code:
checking for gmp.h... no configure: error: gmp.h header not found Code:
--------------- Already built: gmp-5.0.2 --------------- Already built: mpfr-3.0.1 --------------- Already built: mpc-0.9 --------------- Starting build: gcc-4.9.4 + /home/ilya/OpenFOAM/ThirdParty-2.1.x/gcc-4.9.4/configure --prefix=/home/ilya/OpenFOAM/ThirdParty-2.1.x/platforms/linux64/gcc-4.9.4 --with-gmp=/home/ilya/OpenFOAM/ThirdParty-2.1.x/platforms/linux64/gmp-5.0.2 --with-mpfr=/home/ilya/OpenFOAM/ThirdParty-2.1.x/platforms/linux64/mpfr-3.0.1 --with-mpc=/home/ilya/OpenFOAM/ThirdParty-2.1.x/platforms/linux64/mpc-0.9 --with-pkgversion=OpenFOAM --enable-languages=c,c++ --enable-__cxa_atexit --enable-libstdcxx-allocator=new --with-system-zlib .... checking for the correct version of gmp.h... yes ... checking for the correct version of the gmp/mpfr/mpc libraries... yes ... checking which gmp to use... system checking gmp.h usability... yes ... checking for gmp.h... no configure: error: gmp.h header not found Cheers Last edited by i.linch; August 31, 2022 at 05:28. |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[OpenFOAM.org] Install OpenFOAM 6 on Ubuntu 16.04 without root access | DoQuocVu | OpenFOAM Installation | 1 | December 27, 2019 16:27 |
OpenFOAM course for beginners | Jibran | OpenFOAM Announcements from Other Sources | 2 | November 4, 2019 08:51 |
[OpenFOAM.org] Install openFOAM 3.0.1 in Ubuntu 16.04 LTS from Deb packs | Pier84 | OpenFOAM Installation | 4 | June 18, 2016 16:22 |
Suggestion for a new sub-forum at OpenFOAM's Forum | wyldckat | Site Help, Feedback & Discussions | 20 | October 28, 2014 09:04 |
Error trying to install 2.1.x on Ubuntu 12.04 | Tetragramm | OpenFOAM Installation | 2 | June 26, 2012 07:21 |