CFD Online Discussion Forums

CFD Online Discussion Forums (
-   OpenFOAM Installation (
-   -   library not found by linker (

elbertj October 6, 2009 01:50

library not found by linker
Hi All,

I have been having issues building OpenFOAM 1.6 on a 64-bit machine. (I successfully installed OF1.6 on a 32-bit laptop.) The machine is;
Linux 2.6.18-164.el5 #1 SMP Tue Aug 18 15:51:48 EDT 2009 x86_64 x86_64 x86_64 GNU/Linux

I had extracted the 1.6 sources and DP binaries. While I execute the ./Allwmake the code generates and error at this stage in /applications/solvers/basic/laplacianFoam as . The full log <allwmake_1.log>is in the same folder.

I could find that while initializing using etc/cshrc the PATH & LD_LIBRARY_PATH variables are not updated. CMAKE_HOME is not created. I guess the above error is created as the LD_LIBRARY_PATH is not updated after initializing.

It ought to look like this: (works)

But it is : (64-bit machine)

The compiler it uses:
[ejp@pd1 openfoam]$ gcc --version
gcc (OpenFOAM) 4.3.3
Copyright (C) 2008 Free Software Foundation, Inc.

Kindly help me troubleshoot.


elbertj October 7, 2009 02:03

I got this resolved. The issue was with setting the environment variable $PATH. In my ~/.cshrc the path variable was set using both setenv (separator ':') and set. While using set the separator ought to be ' ' while I used ':' mistakenly.

The script OpenFoam-1.6/bin/foamCleanPath separates the path and reassembles the variable adding new locations. This script didn't add new locations due to wrong separators in PATH. The same is with LD_LIBRARY_PATH.

All times are GMT -4. The time now is 12:42.