CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Installation (http://www.cfd-online.com/Forums/openfoam-installation/)
-   -   OpenFOAM compilation on a linux machine (http://www.cfd-online.com/Forums/openfoam-installation/57762-openfoam-compilation-linux-machine.html)

Enric Aramburu (Aramburu) January 3, 2005 07:42

Hello everybody, I am tryin
 
Hello everybody,

I am trying to compile OpenFOAM on a PC (linux, red hat 7.3)and I get some error messages related with some libraries, I include an example of such errors:

--------------------------------------------------
/home/ceis/OpenFOAM/OpenFOAM-1.0/src/lam-7.1.1/platforms/linuxOpt/lib/liblam.so.0: undefined reference to `pthread_cond_signal@GLIBC_2.3.2'
/home/ceis/OpenFOAM/OpenFOAM-1.0/src/lam-7.1.1/platforms/linuxOpt/lib/liblam.so.0: undefined reference to `pthread_cond_broadcast@GLIBC_2.3.2'
/home/ceis/OpenFOAM/OpenFOAM-1.0/src/lam-7.1.1/platforms/linuxOpt/lib/liblam.so.0: undefined reference to `pthread_cond_destroy@GLIBC_2.3.2'
/home/ceis/OpenFOAM/OpenFOAM-1.0/src/lam-7.1.1/platforms/linuxOpt/lib/liblam.so.0: undefined reference to `pthread_cond_wait@GLIBC_2.3.2'
/home/ceis/OpenFOAM/OpenFOAM-1.0/src/lam-7.1.1/platforms/linuxOpt/lib/liblam.so.0: undefined reference to `pthread_cond_init@GLIBC_2.3.2'
/home/ceis/OpenFOAM/OpenFOAM-1.0/src/lam-7.1.1/platforms/linuxOpt/lib/libmpi.so.0: undefined reference to `__register_atfork@GLIBC_2.3.2'
collect2: ld returned 1 exit status
make: *** [/home/ceis/OpenFOAM/OpenFOAM-1.0/applications/bin/linuxOpt/icoTopoFoam] Error 1

--------------------------------------------------

any idea that helps me to solve this will be welcome.

Thanks in advance.

Enric.

Mattijs Janssens (Mattijs) January 3, 2005 10:14

Hi, did you clean out the
 
Hi,

did you clean out the lam build? See the $FOAM_SRC/Allwmake script for how to clean/rebuild lam.

Also I've never tried to build that lam version on an older RH version. OpenFOAM uses an unmodified lam and just does something like configure --prefix=XXXX so it seems the error is in the lam configure setup. Or there are some old binary files which haven't been removed.

Hope this helps,

Mattijs

Enric Aramburu (Aramburu) January 4, 2005 04:02

Hi Mattijs, You are right,
 
Hi Mattijs,

You are right, I have erased the whole instalation, I have installed it again but without installing the precompiled version, I have recompiled it and it works perfectly.

thank you very much.

Enric.


All times are GMT -4. The time now is 06:24.