CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Installation (https://www.cfd-online.com/Forums/openfoam-installation/)
-   -   How to install gmp amp mpfr for the gcc431 provied by OpenFOAM15 (https://www.cfd-online.com/Forums/openfoam-installation/57278-how-install-gmp-amp-mpfr-gcc431-provied-openfoam15.html)

edison December 3, 2008 01:00

I'm a new student for both Ope
 
I'm a new student for both OpenFOAM and Linux.
I'm using redhat Linux version 2.6.9-42.ELsmp.
When I try to compile paraView it siad /opt/OF/ThirdParty/gcc-4.3.1/platforms/linux/bin/../libexec/gcc/i686-pc-linux-gn u/4.3.1/cc1plus: error while loading shared libraries: libmpfr.so.1: cannot open shared object file: No such file or directory
make: *** [Make/linuxGccDPOpt/icoFoam.o] Error 1

Plesse give me some more specific instruction on how to install mpfr on the Gcc.4.3.1 provied by OpenFOAM.

ep4 December 3, 2008 01:39

These installations can be don
 
These installations can be done with the following commands in the directory coming form the extraction:
./configure
make
make check
make install
Note that it could be necessary to use ./configure --with-gmp-lib=/usr/local/lib if it doesn't work with ./configure for gmp.
In order to install these libraries, you need to use the system compiler and not the one installed by OpenFoam. Therefore, for the compilation, you need to suppress the additional line of the $.bashrc$ file.
After that, you could have to redifine the path of the ld library: LD_LIBRARY_PATH=/usr/local/lib:/x/mpfr-2.3.2/lib:$LD_LIBRARY_PATH in the terminal when you are installing paraview.

After doing these steps, i hat not the problem with libmpfr.so.1 anymore

Hope it helps

Eric


All times are GMT -4. The time now is 17:37.