CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM

Compiler gcc/mpicc doesn't work anymore since OpenFoam is installed

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 11, 2021, 03:24
Default Compiler gcc/mpicc doesn't work anymore since OpenFoam is installed
  #1
New Member
 
Thibaut
Join Date: Nov 2020
Posts: 21
Rep Power: 6
Taendyr is on a distinguished road
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
Taendyr is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


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


All times are GMT -4. The time now is 01:14.