|
[Sponsors] |
February 18, 2015, 09:34 |
libmpc.so.3 not found
|
#1 |
Senior Member
BastiL
Join Date: Mar 2009
Posts: 530
Rep Power: 20 |
Hello all,
I compiled gcc4.9.2 and all its dependencies (gmp, mpc, ...) to build OpenFOAM. Now it fails when building wmake: Code:
gcc-4.9.2/libexec/gcc/x86_64-unknown-linux-gnu/4.9.2/cc1: error while loading shared libraries: libmpc.so.3: cannot open shared object file: No such file or directory What is the correct way to fix this? Edit: Before that I already had it but I needed to recompile and ran both "wcleanAll" and "wclean all" where I guess some of the commands deleted too much. Which is the "correct" one before recompilation? |
|
February 18, 2015, 14:18 |
|
#2 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128 |
Hi Bastil,
For future reference, a related attempt of yours was reported here: http://www.cfd-online.com/Forums/ope...s-not-run.html As for the problem you're having, there are several possible problems that could have gone wrong. All details are extremely important, and since you didn't provide enough of them , I'll have to guess that you did not update properly the respective variables at "OpenFOAM-2.3.x/etc/config/settings.sh", at least for the version of MPC and then refresh the shell environment. In addition, since you didn't specify which Linux distribution you're using, I suggest you have a look at these instructions: http://openfoamwiki.net/index.php/In...EL#CentOS_5.10 Best regards, Bruno
__________________
|
|
February 19, 2015, 02:46 |
|
#3 |
Senior Member
BastiL
Join Date: Mar 2009
Posts: 530
Rep Power: 20 |
I am running RHEL5. I had it working before (see my other post) and need to recompile because of some unhappy cleaning. therefore, settings.sh should be fine. I have:
Code:
echo $WM_COMPILER Gcc49 Code:
Gcc49 | Gcc49++0x) gcc_version=gcc-4.9.2 gmp_version=gmp-6.0.0 mpfr_version=mpfr-3.1.2 mpc_version=mpc-1.0.2 |
|
February 19, 2015, 03:38 |
|
#4 |
Senior Member
BastiL
Join Date: Mar 2009
Posts: 530
Rep Power: 20 |
Ok I am getting closer. I created a shell-script to open up a new terminal having the environment set there. I typically do this to run OF in a separate terminal and to make sure single and double precision are not mixed up. For some reason, the way I did this did not correctly set all the environment. Sourcing /etc/bashrc in the Terminal manually leads to a running gcc....
I have no idea why the environment is not set-up correctly. It is done this way: Code:
bash -c "export WM_PRECISION_OPTION=DP; source /path/to/OpenFOAM/OpenFOAM-2.3.x/etc/bashrc; konsole --noclose -T OpenFOAM-2.3.x-DP --notabbar --nomenubar --schema BlackOnLightYellow.schema |
|
February 19, 2015, 17:37 |
|
#5 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128 |
Quick answer: Not enough information to be able to fully ascertain the problem, but:
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[Gmsh] Insatlling gmsh from the source code-issue? | CFD-Lover | OpenFOAM Meshing & Mesh Conversion | 20 | June 12, 2018 06:39 |
Gmsh installation on terminal help | spitfire | Main CFD Forum | 4 | July 27, 2017 15:11 |
Problems in compiling paraview in Suse 10.3 platform | chiven | OpenFOAM Installation | 3 | December 1, 2009 07:21 |
Problems Installing OF 1.6 32 bit | bucksfan | OpenFOAM Installation | 19 | August 4, 2009 01:36 |
Installation OF1.5-dev | ttdtud | OpenFOAM Installation | 46 | May 5, 2009 02:32 |