|
[Sponsors] |
Compiler gcc/mpicc doesn't work anymore since OpenFoam is installed |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
February 11, 2021, 03:24 |
Compiler gcc/mpicc doesn't work anymore since OpenFoam is installed
|
#1 |
New Member
Thibaut
Join Date: Nov 2020
Posts: 21
Rep Power: 6 |
Hi,
I installed OpenFoam on Windows like recommended here: https://openfoam.com/download/install-windows-10.php I works perfectly, I can run my simulations without any problem. The problem is when I wank to compile a C or C++ program I coded. When I try to compile it I have the message : /opt/OpenFOAM/OpenFOAM-v2012/ThirdParty/platforms/linux64/gcc-6.3.0/bin/../libexec/gcc/x86_64-pc-linux-gnu/6.3.0/cc1: error while loading shared libraries: libmpfr.so.4: cannot open shared object file: No such file or directory. Since it is opt/OpenFOAM/, I guess that this comes from OpenFOAM. When I do $which gcc, I have /opt/OpenFOAM/OpenFOAM-v2012/ThirdParty/platforms/linux64/gcc-6.3.0/bin/gcc. How can I do ? I already removed all the OpenFOAM files and reinstalled gcc, it worked perfectly. But this can not be a long term solution |
|
|
|
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.com] OpenFoam installation failure with g++ internal compiler error | WUYing | OpenFOAM Installation | 1 | April 2, 2020 17:46 |
I need help using newly installed OpenFoam Package please? | Estes | OpenFOAM Installation | 1 | September 7, 2011 05:16 |
unable to install openfoam 1.7 using apt-get | maazhmd | OpenFOAM Installation | 7 | July 24, 2011 12:18 |
CFX11 + Fortran compiler ? | Mohan | CFX | 20 | March 30, 2011 19:56 |